Vue SelectBox - fieldAddons
Specifies SelectBox input field addons.
Type: | null
Default Value: null
Field addons are custom markup containers that you can add to either side of the SelectBox input field. The component arranges visual elements in the following order: beforeTemplate, SelectBox input, afterTemplate.
App.vue
- <script setup lang="ts">
- import { DxSelectBox, DxFieldAddons } from 'devextreme-vue/select-box';
- </script>
- <template>
- <DxSelectBox ... >
- <DxFieldAddons
- before-template="beforeSelectBox"
- after-template="afterSelectBox"
- />
- <template #beforeSelectBox="{ data }">
- <i class="dx-icon-chevronprev"></i>
- </template>
- <template #after="{ data }">
- <i class="dx-icon-chevronnext"></i>
- </template>
- </DxSelectBox>
- </template>