diff --git a/source/import_documentation/Components/Solid-Form.rst b/source/import_documentation/Components/Solid-Form.rst index 16c5de6e5bf1874788c6568e9c2ead4c262b36a6..cd9bfc97a64c792088d3e02e37f371af4ac580d4 100644 --- a/source/import_documentation/Components/Solid-Form.rst +++ b/source/import_documentation/Components/Solid-Form.rst @@ -89,12 +89,12 @@ Attributes ``min-[field]`` ~~~~~~~~~~~~~~~ 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]`` ~~~~~~~~~~~~~~~ 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]`` ~~~~~~~~~~~~~~~ @@ -132,6 +132,31 @@ 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]`` +~~~~~~~~~~~~~~~~~~~~~ + *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]`` +~~~~~~~~~~~~~~~~ + *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 ------- By default, the widget used is ``<solid-form-label-text>``. Cf the diff --git a/source/import_documentation/Mixins/widget-mixin.rst b/source/import_documentation/Mixins/widget-mixin.rst index 06afbdd78853c5c99b0ec9e4d6adf79e8d0ff4db..083585f532b948ce8d91e8a586bf8094267c0a71 100644 --- a/source/import_documentation/Mixins/widget-mixin.rst +++ b/source/import_documentation/Mixins/widget-mixin.rst @@ -85,6 +85,10 @@ Attributes ~~~~~~~~~~~~~~~~~~ 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]`` ~~~~~~~~~~~~~~~~~~ Displays a link with a ``<solid-link>`` tag with the current resource as ``data-src`` and the value of the attribute as ``next``. diff --git a/source/import_documentation/Widgets/Reference.rst b/source/import_documentation/Widgets/Reference.rst index 9a3de2e9f06f52d47adaa522184984ff7de79edf..ba786a5552ccb3861304ceb2dbee58af74a1dd7d 100644 --- a/source/import_documentation/Widgets/Reference.rst +++ b/source/import_documentation/Widgets/Reference.rst @@ -59,6 +59,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. - ``color``: set ``value`` in an ``<input>`` of type ``color``. - ``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`` diff --git a/source/import_documentation/attributes-list.rst b/source/import_documentation/attributes-list.rst index d92af71ddc3164ebf6bd2aeb92b6819ea3b7dd56..9d74ab3c4b51cfce4bc356e2bc075fcc20124744 100644 --- a/source/import_documentation/attributes-list.rst +++ b/source/import_documentation/attributes-list.rst @@ -75,6 +75,10 @@ List of attributes (core framework) ~~~~~~~~~~~~~~~~~~ * :ref:`widget-mixin <widget-mixin>` +``default-widget-[field]`` +~~~~~~~~~~~~~~~~~~~~~~~~~~ + * :ref:`widget-mixin <widget-mixin>` + ``editable-[field]`` ~~~~~~~~~~~~~~~~~~~~ * :ref:`widget-mixin <widget-mixin>` @@ -141,11 +145,19 @@ List of attributes (core framework) ``max-[field]`` ~~~~~~~~~~~~~~~ * :ref:`solid-form <solid-form>` + +``maxlength-[field]`` +~~~~~~~~~~~~~~~~~~~~~ + * :ref:`solid-form <solid-form>` ``min-[field]`` ~~~~~~~~~~~~~~~ * :ref:`solid-form <solid-form>` +``minlength-[field]`` +~~~~~~~~~~~~~~~~~~~~~ + * :ref:`solid-form <solid-form>` + ``multiple-[field]`` ~~~~~~~~~~~~~~~~~~~~ * :ref:`widget-mixin <widget-mixin>` @@ -232,6 +244,10 @@ List of attributes (core framework) ~~~~~~~~~~~~~~~~~~~~~~~ * :ref:`solid-form-search <solid-form-search>` +``step-[field]`` +~~~~~~~~~~~~~~~~ + * :ref:`solid-form <solid-form>` + ``(search-fields)`` deprecated ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * :ref:`filter-mixin <filter-mixin>`