diff --git a/source/import_documentation/Components/Solid-Form-Search.rst b/source/import_documentation/Components/Solid-Form-Search.rst index 608fb27c03bb5d14643d3b5f09fa216c83ac122d..1fe1e9bba588a3cf20157c671e40c1235f99383f 100644 --- a/source/import_documentation/Components/Solid-Form-Search.rst +++ b/source/import_documentation/Components/Solid-Form-Search.rst @@ -140,6 +140,33 @@ Attributes filtered-by="filter-multiselectautocomp" ></solid-display> + +.. _auto-range-field: +``auto-range-[field]`` +~~~~~~~~~~~~~~~~~~~~~~~ + *Available from version 0.17* + + Dynamically populates a dropdown based on the values of the ``solid-display``(s) associated. + For each ``solid-display``, it will look for its ``field`` values, and add them to the dropdown. + Each value is displayed only once. + ``field`` can target a ``container`` or a ``resource``. + + 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 ------- By default, the widget used is ``<solid-form-label-text>``. Cf the diff --git a/source/import_documentation/attributes-list.rst b/source/import_documentation/attributes-list.rst index 699ad65e825500b06acbca3ce15d1404500e08cb..6f6adf03b00084bc11fe74cf101ce512e846aedc 100644 --- a/source/import_documentation/attributes-list.rst +++ b/source/import_documentation/attributes-list.rst @@ -14,6 +14,10 @@ List of attributes (core framework) * :ref:`solid-form <autocomplete-field-sf>` * :ref:`solid-form-search <autocomplete-field-sfs>` +``auto-range-[field]`` +~~~~~~~~~~~~~~~~~~~~~~ + * :ref:`solid-form-search <auto-range-field>` + ``autosave`` ~~~~~~~~~~~~ * :ref:`solid-form <autosave>`