Extension

Extension

Colorpicker extension class.

Constructor

new Extension(colorpicker, options)

Source:
Parameters:
Name Type Description
colorpicker Colorpicker
options Object

Members

colorpicker :Colorpicker

The colorpicker instance

Source:
Type:

options :Object

Extension options

Source:
Type:
  • Object

Methods

onChange(event)

Method called after the colorpicker color is changed

Source:
Parameters:
Name Type Description
event Event
Listens to Events:

onCreate(event)

Method called after the colorpicker is created

Source:
Parameters:
Name Type Description
event Event
Listens to Events:

onDestroy(event)

Method called after the colorpicker is destroyed

Source:
Parameters:
Name Type Description
event Event
Listens to Events:

onDisable(event)

Method called after the colorpicker is disabled

Source:
Parameters:
Name Type Description
event Event
Listens to Events:

onEnable(event)

Method called after the colorpicker is enabled

Source:
Parameters:
Name Type Description
event Event
Listens to Events:

onHide(event)

Method called after the colorpicker is hidden

Source:
Parameters:
Name Type Description
event Event
Listens to Events:

onInvalid(event)

Method called when the colorpicker color is invalid

Source:
Parameters:
Name Type Description
event Event
Listens to Events:

onShow(event)

Method called after the colorpicker is shown

Source:
Parameters:
Name Type Description
event Event
Listens to Events:

onUpdate(event)

Method called after the colorpicker is updated

Source:
Parameters:
Name Type Description
event Event
Listens to Events:

resolveColor(color, realColor) → {ColorItem|String|*}

Function called every time a new color needs to be created. Return false to skip this resolver and continue with other extensions' ones or return anything else to consider the color resolved.

Source:
Parameters:
Name Type Default Description
color ColorItem | String | *
realColor boolean true

if true, the color should resolve into a real (not named) color code

Returns:
Type:
ColorItem | String | *