A little follow up if you don't mind. Nothing I could not work around but perhaps somebody has some ideas or hints before I dig deeper
Works like a charm, especially I can handle the "all series" case better
But: I get a comma separated string. Should be fine in most cases but I would prefer an array same as a list with the
multiple flag set outputs (imagine commas in the value strings)
If I set this string during oneditprepare I get this:
The title is empty but the items are set as expected.
Only if i drop down the list and close it again it seams the expected "2 selected" appears
If i switch from selected series (2 selected) to all series and back i get this
Not what I expected. Now the "title" is correct but no options are selected. Closing the dropdown gives "0 selected" and the selections are lost.
Here are my properties ... (you can ignore my uiElements object, it only handles the ui elements I use and make editable lists easier and
oneditsave a one line job.
if (!data.applyTo) data.applyTo=[""];
icon: "fa fa-bars",
icon: "fa fa-list-ul",
}],data.applyTo,(data.applyTo === '') ? 'allSeries' : 'selected',contentWidth-2+'%');
And I recognize the typed input is 2% lager than expected