Display filter
From JRapid
Filters that have the "display" attribute set to "primary" are always displayed in the entity's listing. If a filter's "display" attribute is set to "secondary" it will appear in a "Advanced filters" list displayed in the lisiting.
If a filter has not set the display attribute it will not be shown in the listings.
Usage:
<filter
name = NAME
entity = ENTITY
display = "primary | secondary"
/>
Example:
- All filters displayed as "primary":
<entity label="Company" menu="Company" name="Company">
...
<filter display="primary" flag="like" label="Name" name="name" property="name"/>
<filter display="primary" flag="exact" label="Responsable" name="responsableFilter"
property="responsable"/>
<filter display="primary" flag="exact" label="Status" name="statusFilter"
property="status"/>
...
</entity>
- "statusFilter" displayed as "secondary":
"Advanced filters" is created as a list of filters (which can be opoened and closed) when at least one filter is displayed as secondary.
<entity label="Company" menu="Company" name="Company">
...
<filter display="primary" flag="like" label="Name" name="name" property="name"/>
<filter display="primary" flag="exact" label="Responsable" name="responsableFilter"
property="responsable"/>
<filter display="secondary" flag="exact" label="Status" name="statusFilter"
property="status"/>
...
</entity>
