-
Matthieu Fesselier authoredMatthieu Fesselier authored
grouper-mixin.rst 993 B
grouper-mixin
The grouper mixin is a post-processor mixin, compatible with list-mixin. It provides the ability to group resources, depending of the values of one of their properties.
Used by:
Attributes
group-by
The resources will be grouped by the field you give as a parameter.
In this example, the mixin will render one
<div>
for each different date, and put the corresponding resources inside.<solid-display data-src=http://server/events/" fields="name, date" group-by="date" ></solid-display>
When used with the pagination, each group is paginated.
group-by-widget
default: ``solid-group-div``
The name of the widget to use as a group widget.
group-class
The name of the class to add on each group widget.