colorPicker

Usage

  • Use a colour picker to let users select a colour

Create a colorPicker

<color-picker id='item' value='[255,255,255,1]'>Profile</color-picker>

Attributes

Item
Description
Input

value

Starting colour of the picker

Array with argb colour values

Events

Event
Description
Output

onchange

FIres when a new colour has been selected

RGBA colour

Functions

Function
Description
Input
Output

openColorPicker

Opens a color picker dialog

default color in RGBA (array) and HEX

Selected color after picking

Last updated