JavaScript/jQuery TagBox - fieldAddons
Specifies TagBox input field addons.
Type: | null
Default Value: null
Field addons are custom markup containers that you can add to either side of the TagBox input field. The component arranges visual elements in the following order: beforeTemplate, TagBox input, afterTemplate.
index.js
- $('#tag-box-container').dxTagBox({
- fieldAddons: {
- beforeTemplate(data, element) {
- element.append(
- $('<i>').addClass('dx-icon-chevronprev'),
- );
- },
- afterTemplate(data, element) {
- element.append(
- $('<i>').addClass('dx-icon-chevronnext'),
- );
- },
- },
- })