-
Matthieu Fesselier authoredMatthieu Fesselier authored
Solid-Display.rst 1.72 KiB
solid-display
Receives the URL of a resource or of a container of resources via its
data-src
attribute, and displays it.
Each field of the displayed resources can be rendered by a specific widget, either custom or chosen from the default ones. Filters and searching capabilities can be easily added to interact with the list of data being displayed.
<solid-display
data-src="https://api.startinblox.com/users/"
fields="first_name, last_name"
></solid-display>
Mixins
- This component uses the following mixins:
-
- :ref:`required-mixin <required-mixin>`
- :ref:`counter-mixin <counter-mixin>`
- :ref:`federation-mixin <federation-mixin>`
- :ref:`filter-mixin <filter-mixin>`
- :ref:`grouper-mixin <grouper-mixin>`
- :ref:`highlighter-mixin <highlighter-mixin>`
- :ref:`list-mixin <list-mixin>`
- :ref:`next-mixin <next-mixin>`
- :ref:`paginate-mixin <paginate-mixin>`
- :ref:`sorter-mixin <sorter-mixin>`
- :ref:`store-mixin <store-mixin>`
- :ref:`widget-mixin <widget-mixin>`
Please check their documentation to know more about their capabilities.
Attributes
fields
By default, all displayed fields are direct children of
<solid-display>
. Make sure you don’t give your set the same name as
a field as it would result in an infinite loop.
child-xyz
add attribute xyz
to all children.
Widgets
By default, the widget used is <solid-display-div>
. Cf the
Widget page for more info.
Events
resourceSelect
Triggered when an resource is clicked.