New to Kendo UI for Vue? Start a free 30-day trial

Represents the props of the Kendo UI for Vue ColorPicker component.

Definition

Package:@progress/kendo-vue-inputs

Properties

adaptive?

boolean

Renders the popup in adaptive mode on small screens when you set it to true.

Default:

false

Sets the title text of the adaptive popup.

Sets the IDs of the elements that describe the ColorPicker, like the HTML aria-describedby attribute. For example, these elements can contain an error or a hint message.

Sets the IDs of the elements that label the ColorPicker.

Sets the initial value of the ColorPicker when you do not set value (see example).

dir?

string

Sets the dir HTML attribute of the ColorPicker.

disabled?

boolean

Disables the ColorPicker when you set it to true (see example).

fillMode?

"flat" | "solid" | "outline"

Configures the fillMode of the ColorPicker.

The available options are:

  • solid
  • outline
  • flat
Default:

undefined

Configures the FlatColorPicker that the ColorPicker shows in its popup.

Default:

{}

Configures the ColorGradient that the ColorPicker shows in its popup.

Default:

{ opacity: true }

Sets a CSS class that shows an icon in the ColorPicker button (see example).

id?

string

Sets the id of the wrapping element of the ColorPicker.

Sets the value of the ColorPicker in RGBA format when you use v-model:modelRgbaValue. The ColorPicker emits update:modelRgbaValue when the user changes the color.

Sets the value of the ColorPicker when you use v-model. The ColorPicker emits update:modelValue when the user changes the color.

Fires when the user clicks the color preview on the left side of the ColorPicker. The event name is activecolorclick.

Fires when the ColorPicker loses the focus. The event name is blur.

Parameters:eventColorPickerBlurEvent

Fires each time the user changes the value. The event name is change.

Parameters:eventColorPickerChangeEvent

Fires when the ColorPicker gets the focus. The event name is focus.

Parameters:eventColorPickerFocusEvent

open?

boolean

Opens or closes the ColorPicker popup. Use it to control the open state.

Configures the ColorPalette that the ColorPicker shows in its popup (see example).

Default:

{ palette: 'office' }

Configures the popup of the ColorPicker.

Default:

{}

rounded?

"small" | "medium" | "large" | "none" | "full"

Configures the roundness of the ColorPicker.

The available options are:

  • none
  • small
  • medium
  • large
  • full
Default:

undefined

Sets the index of the selected view in the ColorPicker popup. The default is 0.

Renders the action buttons in the popup footer when you set it to true.

Default:

true

Renders the clear button in the popup header when you set it to true.

Default:

true

Renders the preview and revert color boxes in the popup header when you set it to true.

Default:

true

size?

"small" | "medium" | "large"

Configures the size of the ColorPicker.

The available options are:

  • small
  • medium
  • large
Default:

undefined

svgIcon?

SVGIcon

Sets an SVG icon that the ColorPicker renders in its button.

tabIndex?

number

Sets the tabIndex attribute of the ColorPicker.

Default:

0

title?

string

Sets the title attribute of the ColorPicker.

valid?

boolean

Overrides the validity state of the ColorPicker. When you set valid, the ColorPicker ignores the required property.

Default:

true

value?

string

Sets the value of the ColorPicker. Use it to control the value.

view?

string

Sets the view that the ColorPicker renders in the popup (see example).

Default:

'combo'