gradio-clickable-arrow-dropdown


Namegradio-clickable-arrow-dropdown JSON
Version 0.0.3 PyPI version JSON
download
home_pageNone
SummaryDropdown component where clicking arrow on the side displays dropdown options
upload_time2024-03-20 15:25:02
maintainerNone
docs_urlNone
authorncstiles
requires_python>=3.8
licenseNone
keywords gradio-custom-component gradio-template-dropdown
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# `gradio_clickable_arrow_dropdown`
Dropdown component where clicking arrow on the side displays dropdown options

## Installation

```bash
pip install gradio_clickable_arrow_dropdown
```

## Usage

```python

import gradio as gr
from gradio_clickable_arrow_dropdown import ClickableArrowDropdown

def handle_inputs(reg_dropdown_val, custom_dropdown_val):
    res = f"""
    Regular dropdown value: {reg_dropdown_val}
    Custom dropdown value: {custom_dropdown_val}
    """

    return res

choices = ["Option 1", "Option 2", "Option 3"]

demo = gr.Interface(
    handle_inputs,
    [
        gr.Dropdown(choices=choices, value=choices[0], filterable=False), 
        ClickableArrowDropdown(choices=choices, value=choices[0], filterable=False)
    ],
    gr.Textbox(),
)

if __name__ == "__main__":
    demo.launch()

```
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "gradio-clickable-arrow-dropdown",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "gradio-custom-component, gradio-template-Dropdown",
    "author": "ncstiles",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/9f/a4/bb9abaee2939de6aba9bc06bdc42113eaebcd639107ee692a3bda4837235/gradio_clickable_arrow_dropdown-0.0.3.tar.gz",
    "platform": null,
    "description": "\n# `gradio_clickable_arrow_dropdown`\nDropdown component where clicking arrow on the side displays dropdown options\n\n## Installation\n\n```bash\npip install gradio_clickable_arrow_dropdown\n```\n\n## Usage\n\n```python\n\nimport gradio as gr\nfrom gradio_clickable_arrow_dropdown import ClickableArrowDropdown\n\ndef handle_inputs(reg_dropdown_val, custom_dropdown_val):\n    res = f\"\"\"\n    Regular dropdown value: {reg_dropdown_val}\n    Custom dropdown value: {custom_dropdown_val}\n    \"\"\"\n\n    return res\n\nchoices = [\"Option 1\", \"Option 2\", \"Option 3\"]\n\ndemo = gr.Interface(\n    handle_inputs,\n    [\n        gr.Dropdown(choices=choices, value=choices[0], filterable=False), \n        ClickableArrowDropdown(choices=choices, value=choices[0], filterable=False)\n    ],\n    gr.Textbox(),\n)\n\nif __name__ == \"__main__\":\n    demo.launch()\n\n```",
    "bugtrack_url": null,
    "license": null,
    "summary": "Dropdown component where clicking arrow on the side displays dropdown options",
    "version": "0.0.3",
    "project_urls": null,
    "split_keywords": [
        "gradio-custom-component",
        " gradio-template-dropdown"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0923c1763b9214da37b835d64aef7ee2aa26913da178df638f8b6d5125365422",
                "md5": "30dea9abdcdb3b166c45a14b14f3536f",
                "sha256": "8f3dbdb83245277ca69a02ce047fb66272a752c10c00bb08dbf87a3d2a18dc71"
            },
            "downloads": -1,
            "filename": "gradio_clickable_arrow_dropdown-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "30dea9abdcdb3b166c45a14b14f3536f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 58965,
            "upload_time": "2024-03-20T15:25:00",
            "upload_time_iso_8601": "2024-03-20T15:25:00.514362Z",
            "url": "https://files.pythonhosted.org/packages/09/23/c1763b9214da37b835d64aef7ee2aa26913da178df638f8b6d5125365422/gradio_clickable_arrow_dropdown-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9fa4bb9abaee2939de6aba9bc06bdc42113eaebcd639107ee692a3bda4837235",
                "md5": "b59d1ab41b442b9a62e5399be94fcc32",
                "sha256": "72f13f580caf1c321685e7b93eea9bc0f0f1effe6fba27846d4c70008494f242"
            },
            "downloads": -1,
            "filename": "gradio_clickable_arrow_dropdown-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "b59d1ab41b442b9a62e5399be94fcc32",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 70636,
            "upload_time": "2024-03-20T15:25:02",
            "upload_time_iso_8601": "2024-03-20T15:25:02.484248Z",
            "url": "https://files.pythonhosted.org/packages/9f/a4/bb9abaee2939de6aba9bc06bdc42113eaebcd639107ee692a3bda4837235/gradio_clickable_arrow_dropdown-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-20 15:25:02",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "gradio-clickable-arrow-dropdown"
}
        
Elapsed time: 0.19151s