diff --git a/source/import_documentation/Components/Solid-Form.rst b/source/import_documentation/Components/Solid-Form.rst index da988a64b2be60e7a660eb6e0b72c9c8a13bfa7a..64fb25600bd8df34f214d97209998b4ae5db766b 100644 --- a/source/import_documentation/Components/Solid-Form.rst +++ b/source/import_documentation/Components/Solid-Form.rst @@ -127,6 +127,11 @@ Attributes 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. +``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 ------- By default, the widget used is ``<solid-form-label-text>``. Cf the diff --git a/source/import_documentation/attributes-list.rst b/source/import_documentation/attributes-list.rst index 369b60e4656209bd96cee125e408ba630acccff9..59ee4b48a10caeb8f83febdbfda7276b58b5caed 100644 --- a/source/import_documentation/attributes-list.rst +++ b/source/import_documentation/attributes-list.rst @@ -141,6 +141,10 @@ List of attributes (core framework) ``max-[field]`` ~~~~~~~~~~~~~~~ * :ref:`solid-form <solid-form>` + +``maxlength-[field]`` +~~~~~~~~~~~~~~~~~~~~~ + * :ref:`solid-form <solid-form>` ``min-[field]`` ~~~~~~~~~~~~~~~