Skip to main content

IMenuColorPaletteOptions

Defined in: js-api/src/widgets/types.ts:79

See Menu.colorPalette

Properties

PropertyTypeDescriptionDefined in
allowPreview?booleanWhether hover effect preview is allowed.js-api/src/widgets/types.ts:104
asGroup?string | nullEither the current item is a separate subgroup by defined string name or inside main menu.js-api/src/widgets/types.ts:95
categorical?booleanEither 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?booleanWhether 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) => voidCalled when color is hovered or reset.js-api/src/widgets/types.ts:92
onSelect?(list) => voidCalled when color is selected by click.js-api/src/widgets/types.ts:87
resetColorMs?numberDelay when color value reset to default after leaving hovered item.js-api/src/widgets/types.ts:107
visible?boolean | nullWhether the current item is visible.js-api/src/widgets/types.ts:98