home-icon
Colorpicker
Last updated: Dec 04, 2023

The colorpicker element is a nice way to let the user input any color.

When the element is present in a section, the user will have a nicely formatted colorpicker to choose a color. This color will be saved in hex format. For example: #ff0000.

In the view file, this element is accessible by its name, for example $text_color.

<a style="color:<?=$text_color;?>">A nice colored text</a>

Becomes:

<a style="color:#ff000">A nice colored text</a>