IMenuColorPaletteOptions
Defined in: js-api/src/widgets/types.ts:79
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
allowPreview? | boolean | Whether hover effect preview is allowed. | js-api/src/widgets/types.ts:104 |
asGroup? | string | null | Either the current item is a separate subgroup by defined string name or inside main menu. | js-api/src/widgets/types.ts:95 |
categorical? | boolean | Either the palette is displayed as a gradient (if false) or as a separate colors sequence (if true). | js-api/src/widgets/types.ts:101 |
closeOnClick? | boolean | Whether to close the menu after color is selected. | js-api/src/widgets/types.ts:110 |
getInitialValue? | () => number[] | Returns value put into the selector as initial or to reset. | js-api/src/widgets/types.ts:82 |
onPreview? | (list) => void | Called when color is hovered or reset. | js-api/src/widgets/types.ts:92 |
onSelect? | (list) => void | Called when color is selected by click. | js-api/src/widgets/types.ts:87 |
resetColorMs? | number | Delay when color value reset to default after leaving hovered item. | js-api/src/widgets/types.ts:107 |
visible? | boolean | null | Whether the current item is visible. | js-api/src/widgets/types.ts:98 |