From 0c0653d9e0f229b45d8bd28b2d7fbf470e0cd9a2 Mon Sep 17 00:00:00 2001 From: Matthieu Fesselier <matthieu.fesselier@gmail.com> Date: Wed, 10 Feb 2021 09:26:23 +0100 Subject: [PATCH] update: add bool and num mixins --- source/import_documentation/Widgets/Reference.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/import_documentation/Widgets/Reference.rst b/source/import_documentation/Widgets/Reference.rst index f25f72d..9bd3eb3 100644 --- a/source/import_documentation/Widgets/Reference.rst +++ b/source/import_documentation/Widgets/Reference.rst @@ -46,7 +46,8 @@ Name of the template to use. Available templates: - ``number``: set ``value`` in an ``<input>`` of type ``number``. - ``rangenumber``: set 2 values in 2 ``<input>`` of type ``number``. Used for filtering with min and max. Possible to add ``start-value-[field]`` and ``end-value-[field]`` attributes to set min and max values. - - ``hidden``: set ``value`` in an ``<input>`` of type ``hidden``. + - ``hidden``: set ``value`` in an ``<input>`` of type ``hidden``. If you need to use a boolean or numeric value you can add a ``bool`` or + ``num`` mixin (ie: ``solid-form-hidden-bool``). - ``dropdown``: set ``value`` in a ``<select>``. The list is provided via the ``range`` attribute, which expects a container’s URL, or via the ``enum`` attribute, which takes a list of the values separated by commas. - ``radio``: set ``value`` in a list of radio buttons. The list is provided via the ``range`` attribute, which expects a container’s URL, or via the ``enum`` attribute, which takes a list of the values separated by commas. - ``multiple``: Accept a container URI as a ``value``, and inserts one widget per resource with a “remove†button for each widget, and an “add†button. -- GitLab