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
paper-chip-input-autocomplete, currently the source must be an array of objects while items is always array of strings.
It would be nice if the source would also accept an array of strings in which case the items would be strings. If the source is assigned an array of objects then items would also be an array of objects. When the source is objects then additional item-label-path property is used to determine which property of the objects is used for the chip label (defaults to text to preserve current behaviour).
When source is objects but there is also item-value-path property set then the items would contain values of those properties instead of objects.
The text was updated successfully, but these errors were encountered:
How would it work in case when "additional-items" mode is enabled. Create new object with new label, but empty value?
Yes, create new obj with property named by item-label-path (default "text"). There could be a callback which can be assigned by component's user to init the new object.
How would that work when "allow-duplicates" mode is enabled?
Just create multiple objects, each containing same properties/values. It's not different from current situation where items contains same string multiple times.
paper-chip-input-autocomplete
, currently thesource
must be an array of objects whileitems
is always array of strings.It would be nice if the
source
would also accept an array of strings in which case theitems
would be strings. If thesource
is assigned an array of objects thenitems
would also be an array of objects. When thesource
is objects then additionalitem-label-path
property is used to determine which property of the objects is used for the chip label (defaults totext
to preserve current behaviour).When source is objects but there is also
item-value-path
property set then theitems
would contain values of those properties instead of objects.The text was updated successfully, but these errors were encountered: