You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`addButtonText`| String | The value of the `add-button-text` prop |
369
+
|`addButtonVariant`| String | The value of the `add-button-variant` prop |
370
+
|`addTag`| Function | Method to add a new tag. Assumes the tag is the value of the input, but optionally accepts one argument which is the tag value to be added |
371
+
|`disableAddButton`| Boolean | Will be `true` if the tag(s) in the input cannot be added (all invalid and/or duplicates) |
372
+
|`disabled`| Boolean |`true` if the component is in the disabled state. Value of the `disabled` prop |
373
+
|`duplicateTagText`| String | The value of the `duplicate-tag-text` prop |
374
+
|`duplicateTags`| Array | Array of the duplicate tag(s) the user has entered |
375
+
|`form`| String | <spanclass="badge badge-secondary">v2.20.0+</span> The value of the `form` prop |
369
376
|`inputAttrs`| Object | Object of attributes to apply to the new tag input element via `v-bind="inputAttrs"`. See below for details |
370
-
|`inputType`| String | <spanclass="badge badge-secondary">v2.3.0+</span> Type of input to render (normalized version of prop `input-type`) |
371
377
|`inputHandlers`| Object | Object of event handlers to apply to the new tag input element via `v-on="inputHandlers"`. See below for details |
372
-
|`removeTag`| Function | Method to remove a tag. Accepts one argument which is the tag value to remove |
373
-
|`addTag`| Function | Method to add a new tag. Assumes the tag is the value of the input, but optionally accepts one argument which is the tag value to be added |
374
378
|`inputId`| String | ID to add to the new tag input element. Defaults to prop `input-id`. If not provided a unique ID is auto-generated. Also available via 'inputAttrs.id' |
375
-
|`isInvalid`| Boolean |`true` if the user input contains invalid tag(s) |
379
+
|`inputType`| String | <spanclass="badge badge-secondary">v2.3.0+</span> Type of input to render (normalized version of prop `input-type`) |
380
+
|`invalidTagText`| String | The value of the `invalid-tag-text` prop |
376
381
|`invalidTags`| Array | Array of the invalid tag(s) the user has entered |
377
382
|`isDuplicate`| Boolean |`true` if the user input contains duplicate tag(s) |
378
-
|`duplicateTags`| Array| Array of the duplicate tag(s) the user has entered|
383
+
|`isInvalid`| Boolean|`true` if the user input contains invalid tag(s) |
379
384
|`isLimitReached`| Boolean | <spanclass="badge badge-secondary">v2.17.0+</span> `true` if a `limit` is configured and the amount of tags has reached the limit |
380
-
|`disableAddButton`| Boolean | Will be `true` if the tag(s) in the input cannot be added (all invalid and/or duplicates) |
381
-
|`disabled`| Boolean |`true` if the component is in the disabled state. Value of the `disabled` prop |
382
-
|`required`| Boolean | <spanclass="badge badge-secondary">v2.20.0+</span> The value of the `required` prop |
383
-
|`form`| String | <spanclass="badge badge-secondary">v2.20.0+</span> The value of the `form` prop |
384
-
|`state`| Boolean | The contextual state of the component. Value of the `state` prop. Possible values are `true`, `false` or `null`|
385
-
|`size`| String | The value of the `size` prop |
385
+
|`limitTagsText`| String | <spanclass="badge badge-secondary">v2.17.0+</span> The value of the `limit-tags-text` prop |
386
386
|`limit`| String | <spanclass="badge badge-secondary">v2.17.0+</span> The value of the `limit` prop |
387
-
|`separator`| String| The value of the `separator` prop|
387
+
|`noTagRemove`| Boolean | <spanclass="badge badge-secondary">v2.21.0+</span> The value of the `no-tag-remove` prop |
388
388
|`placeholder`| String | The value of the `placeholder` prop |
389
+
|`removeTag`| Function | Method to remove a tag. Accepts one argument which is the tag value to remove |
390
+
|`required`| Boolean | <spanclass="badge badge-secondary">v2.20.0+</span> The value of the `required` prop |
391
+
|`separator`| String | The value of the `separator` prop |
392
+
|`size`| String | The value of the `size` prop |
393
+
|`state`| Boolean | The contextual state of the component. Value of the `state` prop. Possible values are `true`, `false` or `null`|
394
+
|`tagClass`| String, Array, or Object | The value of the `tag-variant` prop. Class (or classes) to apply to the tag elements |
395
+
|`tagPills`| Boolean | The value of the `tag-pills` prop |
389
396
|`tagRemoveLabel`| String | Value of the `tag-remove-label` prop. Used as the `aria-label` attribute on the remove button of tags |
390
397
|`tagVariant`| String | The value of the `tag-variant` prop |
391
-
|`tagPills`| Boolean | The value of the `tag-pills` prop |
392
-
|`tagClass`| String, Array, or Object | The value of the `tag-variant` prop. Class (or classes) to apply to the tag elements |
393
-
|`addButtonText`| String | The value of the `add-button-text` prop |
394
-
|`addButtonVariant`| String | The value of the `add-button-variant` prop |
395
-
|`invalidTagText`| String | The value of the `invalid-tag-text` prop |
396
-
|`duplicateTagText`| String | The value of the `duplicate-tag-text` prop |
397
-
|`limitTagsText`| String | <spanclass="badge badge-secondary">v2.17.0+</span> The value of the `limit-tags-text` prop |
398
+
|`tags`| Array | Array of current tag strings |
398
399
399
400
#### `inputAttrs` object properties
400
401
401
402
The `inputAttrs` object contains attributes to bind (`v-bind`) to the new tag input element.
|`input`| Function | Event handler for the input element `input` event. Accepts a single argument of either an event object or a string. Updates the internal v-model for the new tag input element |
421
421
|`change`| Function | Event handler for the input element `change` event. Accepts a single argument of either an event object or a string. Change will trigger adding the tag. |
422
+
|`input`| Function | Event handler for the input element `input` event. Accepts a single argument of either an event object or a string. Updates the internal v-model for the new tag input element |
422
423
|`keydown`| Function | Event handler for the input element `keydown` <kbd>Enter</kbd> and <kbd>Del</kbd> events. Accepts a single argument which is the native keydown event object |
423
424
424
425
The `change` handler, when needed, must be enabled via the `add-on-change` prop, otherwise it is a
0 commit comments