ColorPaletteComponent
Represents the Kendo UI ColorPalette component.
The ColorPaletteComponent
provides a set of predefined palette presets and lets you implement a custom color palette. You can use it directly or as part of the kendo-colorpicker
.
<kendo-colorpalette [palette]="['#fff', '#000']" [(value)]="selectedColor"></kendo-colorpalette>
Selector
kendo-colorpalette
Export Name
Accessible in templates as #kendoColorPaletteInstance="kendoColorPalette"
Inputs
Name | Type | Default | Description |
---|---|---|---|
columns |
|
|
Sets the number of columns to display. |
disabled |
|
Disables the ColorPalette. To disable it in reactive forms, see Forms Support. | |
format |
|
|
Specifies the output format of the |
palette |
|
Sets the color palette to display. You can use a predefined palette preset (such as | |
readonly |
|
|
Sets the read-only state of the ColorPalette. |
size |
|
|
Sets the size of the ColorPalette internal elements. |
tabindex |
|
|
Sets the |
tileSize |
|
Sets the size of a color cell. The default tile size depends on the | |
value |
|
Sets the value of the selected color. |
Events
Name | Type | Description |
---|---|---|
selectionChange |
|
Fires when the color selection changes. |
valueChange |
|
Fires when the value changes. |
Methods
reset |
---|
Clears the color value of the ColorPalette. |