value | Current value of input (v-model). Array of strings or null | {{keywords}} |
---|---|---|
showDeleteButton | Show button (×) to delete keyword. Boolean | |
separator |
Symbol between keywords. String or Object If object provided it can has following fields:
Tip: to put each keyword on its own line, set '\r\n' as the separator value |
Presets: |
splittingRegexp |
RegExp to split entered or pasted text. RegExp Note: if null provided, entered text will be not splitted automatically, but you can provide your own splitting logic using `preprocessKeyword` property |
|
preprocessKeyword | Allows to specify the function that will change the entered keywords before emitting new value. Function
Note: this affects only new entered/pasted text |
{{displayFunc(preprocessKeyword)}}
|
getKeywordClasses | Allows to set CSS-classes for keywords. Function
|
{{displayFunc(getKeywordClasses)}}
|
scrollY | Allows to control vertical scroll position. You can set and get value (using `scroll-y.sync`). Number |
|
handleExceptions |
Allows to set handler for unhandled exceptions. Function
|
Will output to the console by default |
emitValueEvent | Allow to change the name of event that will be emitted when user changes value Function | `input` by default |
customizeMultiKeywordDraggingCanvas |
Allow to customize drag image for multi keyword dragging. Function |
- |
historyController | Allow to customize undo/redo handling. HistoryController | - |
focus() | Make component focused |
---|---|
selectAll() | Select all keywords |
setCursorPosition(keyword_index, after) |
Set cursor position before or after specified keyword index
|
deleteSelectedKeywords(emit = true) |
Delete selected keywords
|
getSelectionsAsJoinedString() | Return selected keywords as joined string |