Skip to main content

Dropdown component where clicking arrow on the side displays dropdown options

Project description

gradio_clickable_arrow_dropdown

Dropdown component where clicking arrow on the side displays dropdown options

Installation

pip install gradio_clickable_arrow_dropdown

Usage

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gradio_clickable_arrow_dropdown-0.0.3.tar.gz (70.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gradio_clickable_arrow_dropdown-0.0.3-py3-none-any.whl (59.0 kB view details)

Uploaded Python 3

File details

Details for the file gradio_clickable_arrow_dropdown-0.0.3.tar.gz.

File metadata

File hashes

Hashes for gradio_clickable_arrow_dropdown-0.0.3.tar.gz
Algorithm Hash digest
SHA256 72f13f580caf1c321685e7b93eea9bc0f0f1effe6fba27846d4c70008494f242
MD5 b59d1ab41b442b9a62e5399be94fcc32
BLAKE2b-256 9fa4bb9abaee2939de6aba9bc06bdc42113eaebcd639107ee692a3bda4837235

See more details on using hashes here.

File details

Details for the file gradio_clickable_arrow_dropdown-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for gradio_clickable_arrow_dropdown-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8f3dbdb83245277ca69a02ce047fb66272a752c10c00bb08dbf87a3d2a18dc71
MD5 30dea9abdcdb3b166c45a14b14f3536f
BLAKE2b-256 0923c1763b9214da37b835d64aef7ee2aa26913da178df638f8b6d5125365422

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page