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