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

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

Definition

Package:@progress/kendo-vue-inputs

Properties

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

Sets the aria-label attribute of the ColorGradient.

Sets the IDs of the elements that label the ColorGradient.

Enables the color contrast tool. Sets the background color that the tool compares to the selected value. The tool calculates the contrast ratio between the two colors. The tool supports only the RGBA format.

class?

string

Sets additional CSS classes to the ColorGradient.

Sets the initial value of the ColorGradient when you do not set value.

disabled?

boolean

Disables the ColorGradient when you set it to true (more information and example).

id?

string

Sets the id of the wrapping element of the ColorGradient.

Sets the tabIndex attribute of the inner elements of the ColorGradient, such as the drag handle, the sliders, and the inputs.

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

Sets the value of the ColorGradient in HEX format when you use v-model. The ColorGradient emits update:modelValue when the user changes the color.

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

Parameters:eventColorGradientChangeEvent

onFocus?

(event: any) => void

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

Parameters:eventany

opacity?

boolean

Shows the alpha slider and the alpha input when you set it to true.

Default:

true

size?

"small" | "medium" | "large"

Configures the size of the ColorGradient.

The available options are:

  • small
  • medium
  • large
Default:

undefined

tabIndex?

number

Sets the tabIndex attribute of the ColorGradient.

value?

string

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