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 | applied to apply to the list. This attribute | should must contain | data of the Conditions type|
tableName | String | Y | Specify a table | containingthat contains output items to display | on the list view. | |
view | String | N | Specify a list view | name used. The default value is Defaultto use. Note that first you need to create this view in the List Views (sys_ui_list) table. | ||
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 listthat contains item subjects. | ||
dateColumn | String | N | Specify a table column | containingthat contains dates related to list items. | ||
stateColumn | String | N | Specify a table column | containing listthat contains item states. | ||
transparent | Boolean | N | Set this attribute to | 'true' to set up the full viewtrue to change the style of the list and make its background transparent. It is false by default. | ||
wrap | Boolean | N | Set this attribute to | 'true | ' toto set up the quick view. It is false by default. | |
itemView | String | N | Specify the view used for item rendering. | ListHeader | String | N | Specify the list header
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> |