Use the <previewList> tag to display table items as a customizable list.
Available attributes:
Attribute | Type | Mandatory | Description |
---|---|---|---|
class | String | N | Specify a CSS class name defined in the CSS field. |
condition | String | N | Specify a condition applied to the list. This attribute should contain data of the Conditions type. |
tableName | String | Y | Specify a table containing items to display on the list view. |
view | String | N | Specify a list view name used. |
elementCount | String | N | Specify the number of page items. If not specified, then equal to '5' by default. |
subjectColumn | String | N | Specify a table column containing list item subjects. |
dateColumn | String | N | Specify a table column containing dates related to list items. |
stateColumn | String | N | Specify a table column containing list item states. |
transparent | Boolean | N | Set this attribute to 'true' to set up the full view. |
wrap | Boolean | N | Set this attribute to 'true' to set up the quick view. |
itemView | String | N | Specify the view used for item rendering. |
ListHeader | String | N | Specify the list header. |
<previewList tableName="announcement" view="AnnounceView" elementCount="3" subjectColumn="subject" dateColumn="sys_created_at" stateColumn="state" wrap="true" itemView="announceView"><ListHeader><div>Announcements</div></ListHeader></previewList> |