viewChange

fires on changing the view of ColorPicker

void viewChange(){ ... };

Deprecated

instead of it, you can use the modeChange event:

colorpicker.events.on("ModeChange",function(mode){
    // your logic here
});

Example

colorpicker.events.on("ViewChange",function(view){
    // your logic here
});

Back to top