Choices icon indicating copy to clipboard operation
Choices copied to clipboard

set select's options by choices property. but how to add placeholder?

Open zeroone2005 opened this issue 1 year ago • 1 comments

`

const options = [{ value: item.id, label: item.name, customProperties: { content: item.content } }];

new d_type = new Choices({ searchEnabled: false, removeItems: true, removeItemButton: true, shouldSort : false, allowHTML: true, choices:options, });

`

zeroone2005 avatar Apr 07 '23 04:04 zeroone2005

Solution for version 10.2.0 (maybe earlier version too).

const options = [
    { value: '', label: 'Select value', placeholder: true },
    { value: 'a', label: 'A' },
    { value: 'b', label: 'B' },
];

ludekbenedik avatar Nov 09 '23 12:11 ludekbenedik