Skip to main content

modeChange

fires on changing the mode of the colorpicker

modeChange: (view: ViewsMode) => void;

Parameters:

view: string - the colorpicker mode ("palette", "picker")

Example

colorpicker.events.on("ModeChange", function(view) {   console.log("Selected mode: " + view); }); 

Related sample: Colorpicker. Events

Change log:

added in v6.4