Commit 8b90ae3f authored by Manon Bourgognon's avatar Manon Bourgognon

Add sorted-by mixin doc

parent a54d366b
......@@ -41,4 +41,34 @@ Attributes
Target a ``<solid-form-search>`` used to provide several options for the user to sort current list of resource.
The ``fields`` attribute of ``<solid-form-search>`` must at least contain ``field``.
``Field`` attribute contains the fields of the resource to be offered to the user for sorting the data.
``Order`` attribute allows you to propose 2 sorting orders: ascending (``asc`) and descending (``desc``).
By default, the order is ascending.
The ``<solid-display>`` cannot combine ``order-asc`` or ``order-desc`` attribute AND ``sorted-by`` attribute.
.. code:: html
fields="field, order"
enum-field="username, email"
enum-order="ascending order = asc, descending order = desc"
fields="username, last_name, email"
\ No newline at end of file
......@@ -192,6 +192,10 @@ List of attributes (core framework)
* :ref:`required-mixin <required-mixin>`
* :ref:`sorter-mixin <sorter-mixin>`
* :ref:`solid-form-search <solid-form-search>`
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment