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