Skip to content
Snippets Groups Projects
Commit 578e2a00 authored by Manon Bourgognon's avatar Manon Bourgognon
Browse files

Add maxlength attribute for textarea

parent 39758c34
No related branches found
No related tags found
No related merge requests found
...@@ -127,6 +127,11 @@ Attributes ...@@ -127,6 +127,11 @@ 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]``
~~~~~~~~~~~~~~~~~~~~~
Add this attribute for the field ``[field]`` to define the maximum number of characters that can be typed.
It works only with a ``solid-form-textarea`` widget.
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
......
...@@ -141,6 +141,10 @@ List of attributes (core framework) ...@@ -141,6 +141,10 @@ 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]``
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
......
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