Closed dzzzchhh closed 3 years ago
As requested by #2 and my current needs, I'd like to suggest an extension to component's API by adding ability to customise the searching capabilities.
Usage example:
<MultiSelectListBox options={composeOptionsFromSource()} onSearch={({ items, textField, query }) => items.filter((item) => item[textField].toLowerCase().includes(query.toLowerCase()) ) } textField="text" valueField="value" value={values[name]} rowHeight={25} onSelect={handleListUpdate} onRemove={handleRemove} sortable={true} onSort={handleListUpdate} />
Hi @dzzzchhh. Thanks. I uploaded the changes.
Awesome, thank you, @facuesr
As requested by #2 and my current needs, I'd like to suggest an extension to component's API by adding ability to customise the searching capabilities.
Usage example: