counter-mixin

The counter mixin is a post-processor mixin, compatible with list-mixin, which provides the ability to show the number of resources of a container.

Used by:

Attributes

counter-template

Template used to show the number of resources. It takes a string in which you can use HTML tags, and the counter variable to add the number.

<solid-display
    data-src="http://server/users/"
    fields="username"
    counter-template="<strong>${counter} users here</strong>"
></solid-display>