JavaScript/jQuery TagBox - fieldAddons

Specifies TagBox input field addons.

Type:

FieldAddons

| 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'),
  • );
  • },
  • },
  • })

SelectBox Demo

afterTemplate

A custom markup that display content to the right of the input field.

Type:

template

Template Data:

Object

Data of the selected editor item.

beforeTemplate

A custom markup that displays content to the left of the input field.

Type:

template

Template Data:

Object

Data of the selected editor item.