Login to follow
ColorPicker

ColorPicker (ODC)

Stable version 0.1.1 (Compatible with ODC)
Uploaded on 05 December 2022 by Noesis
ColorPicker

ColorPicker (ODC)

Documentation
0.1.1

How to use

After installing the component from the forge, open the "Add public elements" dialog (or click Ctrl+Q), select the library "ColorPicker" and add the block element.

You will see a new web block available to use in screens or other web blocks.

There are three parameters in the widget:

  • Name (Mandatory) - Name that you give to the instance of the widget;
  • DefaultColor - The default color that the widget starts with. It is expected a string with the RGB code like "#008000" (green);
  • ExtendedClasses - Pass other CSS classes names to customize the widget.

You need to handle the event ColorSelected with a client action. The event just contain an input parameter (Color) that gives the color's RGB code selected by the user.

In the following example, the user selects a color and applies it to a container's background.