Skip to main content

IMenuColorPaletteOptions

See Menu.colorPalette

Properties

PropertyTypeDescription
allowPreview?booleanWhether hover effect preview is allowed.
asGroup?null | stringEither the current item is a separate subgroup by defined string name or inside main menu.
categorical?booleanEither the palette is displayed as a gradient (if false) or as a separate colors sequence (if true).
closeOnClick?booleanWhether to close the menu after color is selected.
getInitialValue?() => number[]Returns value put into the selector as initial or to reset.
onPreview?(list: number[]) => voidCalled when color is hovered or reset.
onSelect?(list: number[]) => voidCalled when color is selected by click.
resetColorMs?numberDelay when color value reset to default after leaving hovered item.
visible?null | booleanWhether the current item is visible.