Closed Xyzor closed 5 years ago
@Xyzor Hi thanks for your message! I will update the library with ability to add a fixed array of items shortly.
@Xyzor you can now define a fixed array of items like this
const data = [
"Apples",
"Broccoli",
"Chicken",
"Duck",
"Eggs",
"Fish",
"Granola",
"Hash Browns",
];
then change your valueExtractor and pass the data to Autocomplete without fetchDataUrl
<Autocomplete data={data} valueExtactor={item => item} />
Awesome.
I'll leave this open for README update.
added Usage without data-driven content in readme.
I'd like to use the module with a fixed array, without calling any api.
Is it possible?