list-mixin

The list mixin provides the ability to display all resources of a container one by one. It can make transformations on the list by being combined with some post-processors mixins.

Post-processors:

Attributes

empty-widget

Name of the widget to display when there is no element in the list.

empty-value

Value to pass to the empty widget if the list is empty. It is accessible in ${value}

For example, it can be a route name, which allow to put a link in the widget.

<solid-display
    data-src="http://server/projects/"
    fields="name"
    empty-widget="no-project-widget"
    empty-value="add-project"
></solid-display>

<solid-widget name="no-project-widget">
    <template>
        <small>No project yet in the list. <solid-link next="${value}">click here to add one</solid-link></small>
    </template>
</solid-widget>