gradio/js/dropdown
Abubakar Abid 9cefd2e90a
Refactor examples so they accept data in the same format as is returned by function, rename .as_example() to .process_example() (#6933)
* image-editor-examples

* add changeset

* add changeset

* delete changeset

* change to process_example()

* add changeset

* changes for all components until dataset.py

* rename

* fix checkboxgroup

* format

* changes

* add changeset

* changes

* add changeset

* radio

* add changeset

* changes

* add changeset

* changes

* examples

* remove print

* fix

* clean

* add changeset

* fix tests

* fix tests

* fix test

* fix

* add changeset

* fix video example

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 16:35:25 -08:00
..
shared Improve CSS token documentation in Storybook (#6399) 2023-12-08 16:23:14 +01:00
CHANGELOG.md chore: update versions (#6825) 2023-12-19 16:17:10 -08:00
Dropdown.stories.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
dropdown.test.ts Fix dropdown blur bug when values are provided as tuples (#6694) 2023-12-07 08:03:11 -08:00
Example.svelte Refactor examples so they accept data in the same format as is returned by function, rename .as_example() to .process_example() (#6933) 2024-01-10 16:35:25 -08:00
Index.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
Multiselect.stories.svelte format (#6658) 2023-12-04 14:37:04 -08:00
package.json chore: update versions (#6825) 2023-12-19 16:17:10 -08:00
README.md Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00

@gradio/dropdown

<script>
    import {BaseDropdown, BaseMultiselect, BaseExample } from "@gradio/dropdown";
</script>

BaseDropdown

	export let label: string;
	export let info: string | undefined = undefined;
	export let value: string | number | (string | number)[] | undefined = [];
	export let value_is_output = false;
	export let choices: [string, string | number][];
	export let disabled = false;
	export let show_label: boolean;
	export let container = true;
	export let allow_custom_value = false;
	export let filterable = true;

BaseMultiselect

	export let label: string;
	export let info: string | undefined = undefined;
	export let value: string | number | (string | number)[] | undefined = [];
	export let value_is_output = false;
	export let max_choices: number | null = null;
	export let choices: [string, string | number][];
	export let disabled = false;
	export let show_label: boolean;
	export let container = true;
	export let allow_custom_value = false;
	export let filterable = true;
	export let i18n: I18nFormatter;

BaseExample

	export let value: string;
	export let type: "gallery" | "table";
	export let selected = false;