Skip to content
On this page

NcSelectTags

Props

Prop nameDescriptionTypeValuesDefault
getOptionLabelCallback to generate the label text<br/>@see https://vue-select.org/api/props.html#getoptionlabelfunc-(option) => {
const { displayName, userVisible, userAssignable } = option
if (userVisible === false) {
return t('{tag} (invisible)', { tag: displayName })
}
if (userAssignable === false) {
return t('{tag} (restricted)', { tag: displayName })
}
return displayName
}
multipleAllow selection of multiple options

This prop automatically sets the internal closeOnSelect prop to
its boolean opposite<br/>@see https://vue-select.org/api/props.html#multiple
boolean-true
optionsFilterCallback to filter available optionsfunc-(_element, index) => index < 5
placeholderPlaceholder text<br/>@see https://vue-select.org/api/props.html#placeholderstring-t('Select a tag')
valueCurrently selected valuenumber|array-null
Any available prop<br/>@see https://vue-select.org/api/props.html-

Events

Event namePropertiesDescription
inputEmitted on input events of the multiselect field
All events from https://vue-select.org/api/events.html

Slots

NameDescriptionBindings
nameAny combination of slots from https://vue-select.org/api/slots.html

Single tag selector

loading...

Multiple tag selector

loading...

Custom filter

Because of compatibility reasons only 5 tag entries are shown by default. If you want to show all available tags set the optionsFilter function-prop to null:

loading...

It's also possible to apply any custom filter logic by setting the optionsFilter function-prop to any custom function receiving the tag element and the index:

loading...