textField
Description
Optional. Binds Rich select options to the input field by the specified keyUsage
textField?: string;
Default value
"label"
Example
function 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" }
];
return <RichSelect options={dataset} textField="email" />;
}
Related article: Configuring the text of the selected option
Related sample: RichSelect