Developers - UI Control
Decoration
All our UI-controls require an array of name/value
-pairs, where name
is the shown value, and value
is the class to toggle. Some of the controls have an additional display
-property used to present custom CSS or icons.
The ui-decoration
-control is similar to the ui-color
-control, but is presented with a larger preview-area. You don't need to specify the icon-color, just the gradient (or solid color).
tip
If you want an option to be "none" (as in: no selection), set value
to pf-none
.
This tells our script to remove any of the other values from the array of values from the target DOM-node.