From 84f3b5e1a5b09f0ebf112657861aefbbaba08586 Mon Sep 17 00:00:00 2001 From: Luca Benati Date: Fri, 23 Apr 2021 00:10:49 +0200 Subject: [PATCH] Added format option to allow color picker widget to return alternate color formats --- backend-forms.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend-forms.md b/backend-forms.md index 53ce5e77..f4b25db1 100644 --- a/backend-forms.md +++ b/backend-forms.md @@ -671,9 +671,13 @@ Option | Description Option | Description ------------- | ------------- +**format** | set color format string, available values are hex,rgb,prgb (percentage rgb),hsv,hsl. Default: hex +**showAlpha** | display slider for alpha channel. Default: false **availableColors** | list of available colors. **allowEmpty** | allows empty input value. Default: false +Setting `showAlpha` to true force format to rgb if defined format is `hex`. + There are two ways to provide the available colors for the colorpicker. The first method defines the `availableColors` directly as a list of hex color codes in the YAML file: color: