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