Tag List displays a collection of tags and supports keyboard navigation, multiple selection, and removal.
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.Shift to change the selection range from the anchor tag to the clicked tag.Shift + ← / → to expand or shrink the range.Ctrl+A key combination.Space when the tag is focused.Pointer and keyboard interactions change the same range relative to its initial tag. When the range shrinks, tags outside it are deselected. Disabled tags remain unchanged.
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.
Entering the mode:
Enter or F2 key (when focused on the tag).Saving changes:
Enter key.kbqTagEditSubmit directive).Canceling changes:
Escape key.To enable tag reordering, you need to set the draggable property for kbq-tag-list.
Key |
Action |
|---|---|
| ← / → | Move focus to previous/next tag. |
| Shift + ← / → | Change the range and move focus. |
| 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. |