From 9006cbade6c1460ae0d915034d7c2306932535d8 Mon Sep 17 00:00:00 2001 From: Manon Bourgognon <manon.bourgognon@epitech.eu> Date: Thu, 25 Feb 2021 14:47:36 +0100 Subject: [PATCH] Add minlength and widgets also concerned --- source/import_documentation/Components/Solid-Form.rst | 7 ++++++- source/import_documentation/attributes-list.rst | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/source/import_documentation/Components/Solid-Form.rst b/source/import_documentation/Components/Solid-Form.rst index 64fb256..c955ea2 100644 --- a/source/import_documentation/Components/Solid-Form.rst +++ b/source/import_documentation/Components/Solid-Form.rst @@ -130,7 +130,12 @@ Attributes ``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. + It works only with ``<input type="text">``, ``solid-form-email`` or ``solid-form-password`` and ``solid-form-textarea`` widgets. + +``minlength-[field]`` +~~~~~~~~~~~~~~~~~~~~~ + Add this attribute for the field ``[field]`` to define the minimum number of characters that can be typed. + It works only with ``<input type="text">``, ``solid-form-email`` or ``solid-form-password`` and ``solid-form-textarea`` widgets. Widgets ------- diff --git a/source/import_documentation/attributes-list.rst b/source/import_documentation/attributes-list.rst index 59ee4b4..d01feec 100644 --- a/source/import_documentation/attributes-list.rst +++ b/source/import_documentation/attributes-list.rst @@ -150,6 +150,10 @@ List of attributes (core framework) ~~~~~~~~~~~~~~~ * :ref:`solid-form <solid-form>` +``minlength-[field]`` +~~~~~~~~~~~~~~~~~~~~~ + * :ref:`solid-form <solid-form>` + ``multiple-[field]`` ~~~~~~~~~~~~~~~~~~~~ * :ref:`widget-mixin <widget-mixin>` -- GitLab