getView

returns the currently set view of the colorpicker

string getView();

Deprecated

instead of it, you can use the getCurrentMode method:

var mode = colorpicker.getCurrentMode(); // -> "palette"

Returns

stringthe currently set view: "palette" or "picker"

Example

colorpicker.setView(view);
 
var view = colorpicker.getView();
// -> "palette"

See also
Back to top