gradio/js/dropdown
Abubakar Abid b3ba17dd11
Update the selected indices in Dropdown when value changes programmatically (#6425)
* dropdown fix'

* add changeset

* typo

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-11-15 09:55:19 -08:00
..
shared Update the selected indices in Dropdown when value changes programmatically (#6425) 2023-11-15 09:55:19 -08:00
CHANGELOG.md chore: update versions (#6308) 2023-11-07 15:50:13 -08:00
Dropdown.stories.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
dropdown.test.ts Update the selected indices in Dropdown when value changes programmatically (#6425) 2023-11-15 09:55:19 -08:00
Example.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
Index.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
Multiselect.stories.svelte Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
package.json chore: update versions (#6308) 2023-11-07 15:50:13 -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;