Document list view
A list view configures the list overview page of a document type. This builds on top of the EntityModule list view.
A list view for a document type can be configured by adding a view definition with type list
and the name listView
.
On a list view, properties to render as well as filter controls can be configured.
General configuration
view-definition: (1)
name: listView (2)
type: list (3)
properties: (4)
- "versionLabel"
- "field:name"
filter: (5)
mode: (6)
advanced: true
fields: (7)
- id: field:name
- id: field:status
selector: MULTI (8)
1 | View definitions always start with the root path view-definition . |
2 | The default list view that is rendered has the name listView . |
3 | To configure list views, the type must be list. |
4 | The properties that should be rendered are listed.
DynamicDocument properties can be listed as well as document definition properties.
Document definition properties must be prefixed with field: . |
5 | A filter configuration is defined. |
6 | The filter control modes are defined. |
7 | A field is specified for which a filter control should be rendered. |
8 | Allow multiple values to be selected in the filter control |
property | required | description |
---|---|---|
mode |
optional |
Allows for the definition of which filter control modes should be available.
By default the A specific mode can be set by setting the mode to true, e.g. |
defaultSelector |
optional |
Sets the default selector that should be used for all specified fields, if no selector is provided for the field itself.
Defauls to |
defaultQuery |
optional |
Sets the query that should be executed on every request. The provided query is an EQL statement. |
basePredicate |
optional |
Sets the query that provides the initial filtering when navigating to the view. The provided query is an EQL statement. |
fields |
optional |
Defines for which fields an EQL filter control should be rendered.
Listed fields must always specify an |
List summary view
If a view definition called listSummaryView
is present, the list view will also provide a summary view.
The interface will be adjusted to allow expanding of a row and seeing the result of the summary view.
See the separate section for more details.