ColorPaletteComponent
The ColorPalette component provides a set of predefined palette presets and enables you to implement a custom color palette.
The ColorPalette is independently used by kendo-colorpicker
and can be directly added to the page.
Selector
kendo-colorpalette
Export Name
Accessible in templates as #kendoColorPaletteInstance="kendoColorPalette"
Inputs
Name | Type | Default | Description |
---|---|---|---|
columns |
|
Specifies the number of columns that will be displayed.
Defaults to | |
disabled |
|
Sets the disabled state of the ColorPalette. To learn how to disable the component in reactive forms, refer to the article on Forms Support. | |
format |
|
Specifies the output format of the ColorPaletteComponent.
The input value may be in a different format. However, it will be parsed into the output The supported values are:
| |
palette |
|
The color palette that will be displayed. The supported values are:
| |
readonly |
|
|
Sets the read-only state of the ColorPalette. |
tabindex |
|
Specifies the tabindex of the component. | |
tileSize |
|
Specifies the size of a color cell. The possible values are:
| |
value |
|
Specifies the value of the initially selected color. |
Events
Name | Type | Description |
---|---|---|
selectionChange |
|
Fires each time the color selection is changed. |
valueChange |
|
Fires each time the value is changed. |
Methods
reset |
---|
Clears the color value of the ColorPalette. |