textField
Description
Optional. Binds MultiCombo options to the input field by the specified keyUsage
textField?: string;
Default value
"label"
Example
const dataset = [
{ id: 1, label: "First option", email: "first@mail.com" },
{ id: 2, label: "Second option", email: "second.mayour@mail.com" },
{ id: 3, label: "Third option", email: "third.mayour@mail.com" }
];
function App() {
return (
<MultiCombo options={dataset} textField="email" placeholder="Select an option" />
);
}
Related article: Configuring the text of selected options
Related sample: MultiCombo