#Multiselect with custom data and form

4 messages · Page 1 of 1 (latest)

fierce frigate
#

Suppose I have Array<{id: number; title: string> coming from the server. I want to be able to manage a form using this interface using multiselect.
I can't find a way to properly map them. Cause it expects value and value is a string[] any ideas?

proven venture
#

Map your data to SelectItem[] type

fierce frigate
#

There's no inner mapper, right?
Like, on MUI u can pass a map function