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

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

Add maxlength attribute for textarea

See merge request documentation/doc!58
parents 752eb245 dfa3657a
No related branches found
No related tags found
No related merge requests found
...@@ -127,6 +127,22 @@ Attributes ...@@ -127,6 +127,22 @@ 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]``
~~~~~~~~~~~~~~~~~~~~~
*Available from version 0.16*
Add this attribute for the field ``[field]`` to define the maximum 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.
``minlength-[field]``
~~~~~~~~~~~~~~~~~~~~~
*Available from version 0.16*
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.
``step-[field]`` ``step-[field]``
~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
*Available from version 0.16* *Available from version 0.16*
......
...@@ -145,11 +145,19 @@ List of attributes (core framework) ...@@ -145,11 +145,19 @@ List of attributes (core framework)
``max-[field]`` ``max-[field]``
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
* :ref:`solid-form <solid-form>` * :ref:`solid-form <solid-form>`
``maxlength-[field]``
~~~~~~~~~~~~~~~~~~~~~
* :ref:`solid-form <solid-form>`
``min-[field]`` ``min-[field]``
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
* :ref:`solid-form <solid-form>` * :ref:`solid-form <solid-form>`
``minlength-[field]``
~~~~~~~~~~~~~~~~~~~~~
* :ref:`solid-form <solid-form>`
``multiple-[field]`` ``multiple-[field]``
~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
* :ref:`widget-mixin <widget-mixin>` * :ref:`widget-mixin <widget-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