I succesfull installed Magento2 Module Select2 Ui Component from https://github.com/weprovide/magento2-module-select2-uicomponent
I never had to use UI components. I want to active Select2 on frontend on my category page. Does anyone can help me with that ? Can I just add this Component by refercence to default.xml or default_head_blocks.xml in Magento_Theme/layout ?
<select class="admin__control-select" data-bind="
attr: {
name: inputName,
id: uid,
disabled: disabled,
'aria-describedby': noticeId
},
hasFocus: focused,
optgroup: options,
value: value,
optionsCaption: caption,
optionsValue: 'value',
optionsText: 'label',
select2: {}
" />
Thanks in advance!