m (E00a555c-1e5d-4eb3-b26b-5be8dc16c657 moved page DevOps:Doc/FlexForm/1.0.0/input/color to input/color without leaving a redirect: Text replacement - "1.0.0" to "1.0") |
|||
ws-page-props | |||
---|---|---|---|
Line 1: | Line 1: | ||
{{Doc properties | {{Doc properties | ||
|Doc subject=DevOps:Doc/FlexForm | |Doc subject=DevOps:Doc/FlexForm | ||
− | |Doc parent=DevOps:Doc/FlexForm/1 | + | |Subject version=1.0.0 |
+ | |Doc parent=DevOps:Doc/FlexForm/1.0/input | ||
|Doc sort order=110 | |Doc sort order=110 | ||
|Doc target group=User | |Doc target group=User | ||
− | |||
}} | }} |
Revision as of 16:24, 7 April 2022
Name
color
Type
_input
Synopsis
How to render a color input field
Description
Elements of type "color" provide a user interface element that lets a user specify a color, either by using a visual color picker interface or by entering the color into a text field in "#rrggbb" hexadecimal format. Only simple colors (with no alpha channel) are allowed.
Parameters
type="color"
All other valid parameters for an input field are valid
Example
<_input type="color" value="#ff0000" />
Note
When adding a standard value to a color field that is not a solid color or a number in HEX notation, the result will always be #000000 (in other words: black)
Links
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/color