Skip to content
Snippets Groups Projects
Commit 522c8400 authored by Matthieu Fesselier's avatar Matthieu Fesselier
Browse files

Merge branch 'color-attribute' into 'dev'

add color widget on solid-form

See merge request documentation/doc!23
parents 518d051f 45f1105b
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ Attributes
It’s particularly useful with a dropdown or radio field.
Two formats are possible:
* ``enum-xyz="value1, value2, value3"`` : each value will be displayed
* ``enum-xyz="value 1, value 2, value 3"`` : each value will be displayed
and loaded in value attribute
* ``enum-xyz="value1 = a, value2 = b, value3 = c"``: each value will be displayed
and "a", "b", "c" will be loaded in value attribute.
......
......@@ -35,15 +35,15 @@ A widget is built like this.
- ``form`` directory
- ``text``: set ``value`` in an ``<input>`` of type ``text``
- ``textarea``: set ``value`` in a ``<textarea>``
- ``text``: set ``value`` in an ``<input>`` of type ``text``.
- ``textarea``: set ``value`` in a ``<textarea>``.
- ``richtext``: set ``value`` in an ``<div>`` and initialize a light rich text editor by using ``Quill``.
- ``checkbox``: create a checkbox, which is checked if ``value == true``
- ``date``: set ``value`` in an ``<input>`` of type ``date``
- ``checkbox``: create a checkbox, which is checked if ``value == true``.
- ``date``: set ``value`` in an ``<input>`` of type ``date``.
- ``rangedate``: set 2 values in 2 ``<input>`` of type ``date``. Used for filtering with min and max.
- ``number``: set ``value`` in an ``<input>`` of type ``number``
- ``number``: set ``value`` in an ``<input>`` of type ``number``.
- ``rangenumber``: set 2 values in 2 ``<input>`` of type ``number``. Used for filtering with min and max.
- ``hidden``: set ``value`` in an ``<input>`` of type ``hidden``
- ``hidden``: set ``value`` in an ``<input>`` of type ``hidden``.
- ``dropdown``: set ``value`` in a ``<select>``. The list is provided via the ``range`` attribute, which expects a container’s URL, or via the ``enum`` attribute, which takes a list of the values separated by commas.
- ``radio``: set ``value`` in a list of radio buttons. The list is provided via the ``range`` attribute, which expects a container’s URL, or via the ``enum`` attribute, which takes a list of the values separated by commas.
- ``multiple``: Accept a container URI as a ``value``, and inserts one widget per resource with a “remove” button for each widget, and an “add” button.
......@@ -52,6 +52,7 @@ A widget is built like this.
When a file is selected it’s uploaded, URL of file is returned by request and set as the ``<input/>`` value.
The upload URL is provided via the ``upload-url`` attribute.
- ``image``: Works like ``file`` but allow only images in the input, and create a preview of the image when selected by the user.
- ``color``: set ``value`` in a ``<input>`` of type ``color``.
- ``set``
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment