modeChange

fires on changing the mode of the colorpicker

void modeChange(string mode){ ... };

Parameters

modestringthe colorpicker mode ("palette", "picker")

Example

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

Related samples

Change log

added in v6.4

Back to top