Tags Autocomplete is used to select one or multiple values from a list and to input custom values.
When focusing on the field, the dictionary menu opens. Autocomplete changes as you type. Selecting an option from the list adds a tag, clears the text in the field, and closes the menu.
The option to create a new tag is placed first in the autocomplete menu. It creates a new token from the entered text if it doesn't exist in the dictionary.
Adding a tag also works with the Tab key.
Creating a duplicate of a selected tag is not allowed: the system will show the message Nothing found.
Tag removal order:
Tags can be removed in several ways:
kbqTagRemove directive) inside the tag.Delete or Backspace key.The removal option is configured using the removable attribute (enabled by default).
Tags can be selected in several ways:
Ctrl.Ctrl+A key combination.Space when the tag is focused.The selection option is configured using the selectable attribute (enabled by default).
To enable editing mode, you need to set the editable property for kbq-tag-list or individual kbq-tag.
Enter editing mode:
Enter or F2 key (when tag is focused).Save changes:
Enter key.kbqTagEditSubmit directive).Cancel changes:
Escape key.In editing mode, the tag transforms into an input field and remains at the same position within the control.
To enable tag reordering, you need to set the draggable property for kbq-tag-list.
Key |
Action |
|---|---|
| Backspace / ← / Shift + Tab | Move focus to the last tag. |
| Ctrl + A | Select all tags and set focus to the last one. |
Key |
Action |
|---|---|
| ← / → | Move focus to previous/next tag. |
| Space | Select/deselect tag. |
| Delete / Backspace | Remove tag. |
| F2 / Enter | Start editing. |
| Ctrl + A | Select all tags. |
| Home / End | Move focus to first/last tag. |
Key |
Action |
|---|---|
| Enter | Save changes. |
| Esc | Cancel changes. |