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

Merge branch 'dev' into 'maxlength-attr-texarea'

# Conflicts:
#   source/import_documentation/Components/Solid-Form.rst
parents f6fe1fc9 752eb245
No related branches found
No related tags found
No related merge requests found
...@@ -84,12 +84,12 @@ Attributes ...@@ -84,12 +84,12 @@ Attributes
``min-[field]`` ``min-[field]``
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
Add this attribute for the field ``[field]`` to define its minimum value. Add this attribute for the field ``[field]`` to define its minimum value.
It works only with a ``solid-form-number`` widget. It works only with ``solid-form-number`` and ``solid-form-time`` widgets.
``max-[field]`` ``max-[field]``
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
Add this attribute for the field ``[field]`` to define its maximum value. Add this attribute for the field ``[field]`` to define its maximum value.
It works only with a ``solid-form-number`` widget. It works only with ``solid-form-number`` and ``solid-form-time`` widgets.
``pattern-[field]`` ``pattern-[field]``
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
...@@ -127,6 +127,7 @@ Attributes ...@@ -127,6 +127,7 @@ Attributes
If the attribute is defined, each change in an input will trigger a request to update the resource. If the attribute is defined, each change in an input will trigger a request to update the resource.
This attribute works only when editing resources, not creating them. This attribute works only when editing resources, not creating them.
``maxlength-[field]`` ``maxlength-[field]``
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
*Available from version 0.16* *Available from version 0.16*
...@@ -141,6 +142,16 @@ Attributes ...@@ -141,6 +142,16 @@ Attributes
Add this attribute for the field ``[field]`` to define the minimum number of characters that can be typed. Add this attribute for the field ``[field]`` to define the minimum number of characters that can be typed.
It works only with ``solid-form-text``, ``solid-form-email`` or ``solid-form-password`` and ``solid-form-textarea`` widgets. It works only with ``solid-form-text``, ``solid-form-email`` or ``solid-form-password`` and ``solid-form-textarea`` widgets.
``step-[field]``
~~~~~~~~~~~~~~~~
*Available from version 0.16*
Add this attribute for the field ``[field]`` to define the stepping interval number to use as constraint validation. Its based on the ``min-[field]`` value.
It works with :
- ``solid-form-time`` widget : Its value is given in seconds (default value is 60).
- ``solid-form-number`` widget : Its default value is 1.
Widgets Widgets
------- -------
By default, the widget used is ``<solid-form-label-text>``. Cf the By default, the widget used is ``<solid-form-label-text>``. Cf the
......
...@@ -85,6 +85,10 @@ Attributes ...@@ -85,6 +85,10 @@ Attributes
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
The widget to use for all the fields, except if a specific one is defined for a field. The widget to use for all the fields, except if a specific one is defined for a field.
``default-widget-[field]``
~~~~~~~~~~~~~~~~~~~~~~~~~~
The widget displayed by default if the ``[field]`` is empty.
``action-[field]`` ``action-[field]``
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
Displays a link with a ``<solid-link>`` tag with the current resource as ``data-src`` and the value of the attribute as ``next``. Displays a link with a ``<solid-link>`` tag with the current resource as ``data-src`` and the value of the attribute as ``next``.
......
...@@ -58,6 +58,7 @@ Name of the template to use. Available templates: ...@@ -58,6 +58,7 @@ Name of the template to use. Available templates:
- ``image``: Works like ``file`` but allow only images in the input, and create a preview of the image when selected by the user. - ``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 an ``<input>`` of type ``color``. - ``color``: set ``value`` in an ``<input>`` of type ``color``.
- ``password``: set ``value`` in an ``<input>`` of type ``password``. - ``password``: set ``value`` in an ``<input>`` of type ``password``.
- ``time``: set ``value`` in an ``<input>`` of type ``time``. The format value is ``hh:mm``.
- ``set`` - ``set``
......
...@@ -75,6 +75,10 @@ List of attributes (core framework) ...@@ -75,6 +75,10 @@ List of attributes (core framework)
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
* :ref:`widget-mixin <widget-mixin>` * :ref:`widget-mixin <widget-mixin>`
``default-widget-[field]``
~~~~~~~~~~~~~~~~~~~~~~~~~~
* :ref:`widget-mixin <widget-mixin>`
``editable-[field]`` ``editable-[field]``
~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
* :ref:`widget-mixin <widget-mixin>` * :ref:`widget-mixin <widget-mixin>`
...@@ -239,6 +243,10 @@ List of attributes (core framework) ...@@ -239,6 +243,10 @@ List of attributes (core framework)
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
* :ref:`solid-form-search <solid-form-search>` * :ref:`solid-form-search <solid-form-search>`
``step-[field]``
~~~~~~~~~~~~~~~~
* :ref:`solid-form <solid-form>`
``(search-fields)`` deprecated ``(search-fields)`` deprecated
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* :ref:`filter-mixin <filter-mixin>` * :ref:`filter-mixin <filter-mixin>`
......
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