Vue ColorBox - fieldAddons

Specifies ColorBox input field addons.

Type:

FieldAddons

| 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>

afterTemplate

A custom markup that displays content to the right of the input field.

Type:

template

Template Data:

Object

Data of the selected editor item.

beforeTemplate

A custom markup that displays content to the left of the input field.

Type:

template

Template Data:

Object

Data of the selected editor item.