IMenuColorPaletteOptions
Defined in: src/widgets/types.ts:55
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
allowPreview? | boolean | Whether hover effect preview is allowed. | src/widgets/types.ts:80 |
asGroup? | string | null | Either the current item is a separate subgroup by defined string name or inside main menu. | src/widgets/types.ts:71 |
categorical? | boolean | Either the palette is displayed as a gradient (if false) or as a separate colors sequence (if true). | src/widgets/types.ts:77 |
closeOnClick? | boolean | Whether to close the menu after color is selected. | src/widgets/types.ts:86 |
getInitialValue? | () => number[] | Returns value put into the selector as initial or to reset. | src/widgets/types.ts:58 |
onPreview? | (list) => void | Called when color is hovered or reset. | src/widgets/types.ts:68 |
onSelect? | (list) => void | Called when color is selected by click. | src/widgets/types.ts:63 |
resetColorMs? | number | Delay when color value reset to default after leaving hovered item. | src/widgets/types.ts:83 |
visible? | boolean | null | Whether the current item is visible. | src/widgets/types.ts:74 |