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
Create a function that will be called every time an item gets selected. The parameter data is the item that was selected.
constonDataSelect=(data: Data)=>{// Do something};
Using the selector
Add a Selector component to your view using the previously created array and function.
<><Selector.Selectdata={data}onSelect={onDataSelect}/>{/* or use the MultiSelect component */}<Selector.MultiSelectdata={data}onSelect={onMultiDataSelect}/></>
That's it! Run your app to see the selector in action.