Skip to main content

IMenuColorPaletteOptions

Defined in: src/widgets/types.ts:55

See Menu.colorPalette

Properties

PropertyTypeDescriptionDefined in
allowPreview?booleanWhether hover effect preview is allowed.src/widgets/types.ts:80
asGroup?string | nullEither the current item is a separate subgroup by defined string name or inside main menu.src/widgets/types.ts:71
categorical?booleanEither the palette is displayed as a gradient (if false) or as a separate colors sequence (if true).src/widgets/types.ts:77
closeOnClick?booleanWhether 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) => voidCalled when color is hovered or reset.src/widgets/types.ts:68
onSelect?(list) => voidCalled when color is selected by click.src/widgets/types.ts:63
resetColorMs?numberDelay when color value reset to default after leaving hovered item.src/widgets/types.ts:83
visible?boolean | nullWhether the current item is visible.src/widgets/types.ts:74