Cm-Object-Selector Or Select2 Usage

I'm trying to use `cm-object-selector` in a select, with the multiple option, form my addon, so that a user can select several options, and every selected option appears in the box instantly along those selected previously.

For some reason the box looks different than what I was expecting. At the beggining when it is empty but also after selecting several values.

Is there any example on how to use this component, specifically all possible `data` attributes or any other means for its configuration?

Thanks a lot for your time and help.