diff --git a/source/import_documentation/Components/Solid-Form.rst b/source/import_documentation/Components/Solid-Form.rst index 0dc68bdb5b37ac943ba310ea1735bd24d043863a..b440ca98102ebb980ef31b60228d0bd0cc3439d1 100644 --- a/source/import_documentation/Components/Solid-Form.rst +++ b/source/import_documentation/Components/Solid-Form.rst @@ -84,12 +84,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]`` ~~~~~~~~~~~~~~~ @@ -127,6 +127,7 @@ 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* @@ -141,6 +142,16 @@ Attributes 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 537daabd2d4156226ace5cf72e0da8f3b696a9a3..43f6fb80f356a705d230ea9c6fa1699513390969 100644 --- a/source/import_documentation/Widgets/Reference.rst +++ b/source/import_documentation/Widgets/Reference.rst @@ -58,6 +58,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 d01feec34514061bb0ba56055ee95f1d0364e219..3ac73e427455ef93aa049a261773ee395b07b422 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>` @@ -239,6 +243,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>`