Skip to main content

getCurrentMode()

returns the current mode of displaying ColorPicker

getCurrentMode(): "palette" | "picker";

Returns:

A string with the the current mode of the colorpicker: "palette" or "picker".

Example

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

Change log:

added in v6.3