textOptions
Description
Optional. Specifies a set of data items that will be used in the input and hidden from dropdownUsage
textOptions?: { id: string | number; label: string }[];
Parameters
id
- (required) an id of a text optionlabel
- (required) the name of a text option
Example
Note if you want to display options in the dropdown, you need to define the options
array.
const users = [
{ id: 1, label: "Berni Mayou" },
{ id: 2, label: "August Dvorak" },
{ id: 3, label: "Elly Soyer" },
];
const renderedUsers = [
{ id: 103, label: "Ned Stark" },
{ id: 104, label: "Lord Varys" },
];
<MultiCombo textOptions={users} options={renderedUsers} value={1} />
Related article: Hiding options from dropdown
Related sample: MultiCombo