Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
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 of the widget. |
condition | String | N | Specify a condition to apply to the list. This attribute must contain a condition string. |
tableName | String | Y | Specify a table that contains output items to display. |
view | String | N | Specify a list view to use. Note that first you need to create this view in the List View (sys_ui_list) table. The default value is Default. |
elementCount | String | N | Specify the number of items per page. Default The default value : is 5. |
subjectColumn | String | N | Specify a column that contains item subjects. |
dateColumn | String | N | Specify a column that contains dates related to list items. |
stateColumn | String | N | Specify a column that contains item states. |
transparent | Boolean | N | Set the value to true to change the style of the list and make its background transparent. The default value is false. |
wrap | Boolean | N | Set the value to true to set up the quick view. The default value is false. |
itemView | String | N | Specify the view used for item rendering. |
To display the table header, specify it in the <ListHeader> child tag, as in the example below.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<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> |