Select2 Component

Hello,

I am looking for a pillbox component like Select2 (https://select2.org/):

Has anyone created one for CUBA, or maybe created Select2 as a component for CUBA?

Greetings
Andreas

Is TokenList something you want?

image

Not really. I think it is nicer when the pills are in the select component. Furthermore, the pills in Select2 have a dynamic width, which makes the element very compact.

Bildschirmfoto 2020-10-15 um 12.56.03

Hi,

TokenList with the inline="true" attribute also have a dynamic width for tokens, e.g.:

Screenshot 2020-10-22 at 11.38.23

There is no Select2 implementation for CUBA neither built-in nor as an add-on, so you can be the first who create it (take a look at the doc: Using a JavaScript library) and submit an add-on.

Regards,
Gleb