Vue 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.
App.vue
- <script setup lang="ts">
- import { DxTagBox, DxFieldAddons } from 'devextreme-vue/tag-box';
- </script>
- <template>
- <DxTagBox ... >
- <DxFieldAddons
- before-template="beforeTagBox"
- after-template="afterTagBox"
- />
- <template #beforeTagBox="{ data }">
- <i class="dx-icon-chevronprev"></i>
- </template>
- <template #after="{ data }">
- <i class="dx-icon-chevronnext"></i>
- </template>
- </DxTagBox>
- </template>