Hi,
I currently have this:
$('#' + vueComponent.name).select2({
tags: true,
templateSelection: formatOption
});
function formatOption (option) {
if (!option.id) {
return option.text;
}
var $option = $(
'<span>' + option.element.value + ' </span><strong>OR</strong>'
);
return $option;
};
Ideally, I would like the OR to separate the tags, any idea how I can do this?
Thanks,
Mick