You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// but we can also add a custom component for the item
264
+
node: <CustomItemitem={item} />,
265
+
}));
266
+
267
+
return (
268
+
<DatalistInput
269
+
label={<div>Custom Label</div>}
270
+
placeholder="Chocolate"
271
+
items={customItems}
272
+
onSelect={(i) =>console.log(i)}
273
+
/>
274
+
);
275
+
}
276
+
```
277
+
278
+
**Note:** Please note that by default the Item.value property is used for filtering. In case you want to filter over custom properties, make sure to implement a custom filter function.
279
+
228
280
### Custom Filtering
229
281
230
282
You can chain custom filters to filter the list of options displayed in the dropdown menu.
0 commit comments