Skip to content
Snippets Groups Projects
Commit ef7a9b8d authored by Manon Bourgognon's avatar Manon Bourgognon
Browse files

add auto-range-[field] attribute documentation

parent e5ae9dc4
No related branches found
No related tags found
2 merge requests!71add auto-range-[field] attribute documentation,!70Dev to Master
...@@ -140,6 +140,31 @@ Attributes ...@@ -140,6 +140,31 @@ Attributes
filtered-by="filter-multiselectautocomp" filtered-by="filter-multiselectautocomp"
></solid-display> ></solid-display>
.. _auto-range-field:
``auto-range-[field]``
~~~~~~~~~~~~~~~~~~~~~~~
*Available from version 0.17*
Allows to display a list of the ``field`` values in the ``solid-form-search`` dropdown for each resource included in the ``data-src``. Each value is dispalyed once.
It takes only a field that refer to a container.
In this example below, ``auto-range-skills ``attribute catches all skill values for all users in the ``data-src`` `data/list/users` and displays in the dropdown all skills once :
.. code:: html
<solid-form-search
id="filter-autorange"
fields="skills"
auto-range-skills
></solid-form-search>
<solid-display
data-src="data/list/users.jsonld"
fields="username, skills"
multiple-skills
filtered-by="filter-autorange"
></solid-display>
Widgets Widgets
------- -------
By default, the widget used is ``<solid-form-label-text>``. Cf the By default, the widget used is ``<solid-form-label-text>``. Cf the
......
...@@ -14,6 +14,10 @@ List of attributes (core framework) ...@@ -14,6 +14,10 @@ List of attributes (core framework)
* :ref:`solid-form <autocomplete-field-sf>` * :ref:`solid-form <autocomplete-field-sf>`
* :ref:`solid-form-search <autocomplete-field-sfs>` * :ref:`solid-form-search <autocomplete-field-sfs>`
``auto-range-[field]``
~~~~~~~~~~~~~~~~~~~~~~
* :ref:`solid-form-search <auto-range-field>`
``autosave`` ``autosave``
~~~~~~~~~~~~ ~~~~~~~~~~~~
* :ref:`solid-form <autosave>` * :ref:`solid-form <autosave>`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment