Skip to content

Improved: <text/> form widget supports "range" and "color" types#965

Open
florianMo wants to merge 1 commit intoapache:trunkfrom
florianMo:OFBIZ-13361
Open

Improved: <text/> form widget supports "range" and "color" types#965
florianMo wants to merge 1 commit intoapache:trunkfrom
florianMo:OFBIZ-13361

Conversation

@florianMo
Copy link
Contributor

@florianMo florianMo commented Feb 16, 2026

Improved: form widget supports "range" and "color" types

OFBIZ-13361

Supports 2 HTML input types for the <text/> form widget.

image

(Chromium 145)

range

<input type="range" min="5" max="16" step="0.5"/>

Allows to define a number between two values (min and max), in a context where the precise value is not considered important.
Typically rendered as a slider rather that a text entry.
min and max attributes are also supported by the <text/> widget.
step attribute can be used to define snapping points on the slider.
Input widget may vary across browsers.

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/range

color

<input type="color"/>

Allows to choose a color (text representing a valid CSS color : hexadecimal, RGBA...), typically with a visual color picker.
Input widget may vary across browsers.

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/color

Thanks: Néréide team

Allows to use input[type="range"], with min and max support.
Allows to use input[type="color"], with browsers color pickers.

OFBIZ-13361
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant