Settings API - Attribute table cards schema table
Attribute table cards (builtin:ua.attribute-table
)
Define card to display complex attribute as a table. Each attribute item in the list would be a row, each item field would be a column.
Schema ID | Schema groups | Scope |
---|---|---|
builtin:ua.attribute-table |
| ua-screen |
Parameters
Property | Label | Type | Description | Required |
---|---|---|---|---|
key | Key | text | Unique key, which is used to map to this entities list in the screen layout config. | required |
displayName | Display name | text | The title of the card. | optional |
description | Description | text | The description of the card. Markdown syntax can be used to enrich description. To define a link, you can only use seaOtter links (https://dt-url.net/XXXXXXX) or action expression The format of a single action expression is: actionName|key=param|key2=param2 | optional |
entitySelectorTemplate | Entity selector template | text | An entity selector that is used to fetch data for related entities. For attribute table it should resolve to single entity. For example for a host screen where you want to show the processes charts this might look like this: Please mind that the Leave empty to gather data for current entity. | optional |
attribute | Attribute | text | Complex attribute which should be displayed as table. | required |
columns | Columns | list | Define columns for this complex attribute. | required |
pageSize | Page size | integer | The number of items displayed on one page. | required |
emptyState | Empty state definition | EmptyStateType | Specifies message shown when there are no entities found. | optional |
initialSorting | Initial sorting definition | InitialSortingType | Specifies initial sorting configuration. | optional |
conditions | List of conditions | set | All conditions from the list need to be fulfilled for the table to be visible | required |
Request body objects
The InitialSortingType
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
columnId | Column ID | text | Column ID is a unique identifier of column. There are several ID types for different column types:
| required |
order | Sorting order | enum | - | required |
The EmptyStateType
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
header | Message header | text | - | required |
body | Message body | text | - | required |
The AttributeType
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
key | Attribute key | text | Use to reference desired attribute. | required |
displayName | Display name | text | Leave empty to resolve automatically | optional |
The ColumnDefinition
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
attribute | Attribute options | AttributeType | - | required |
conditions | List of conditions | set | All conditions from the list need to be fulfilled for the column to be visible | required |