ExtendedHeader¶
Contains additional elements that provide more information. These elements can be labels, status, rating controls, tags, text.
When assigning a rule to a property of ExtendedHeader, the rule will be passed an instance of the following proxy class as an argument:
ExtendedHeader Properties¶
| Property | Type | Required | Default |
|---|---|---|---|
| ItemSeparator | boolean |
No | false |
| ItemType | enum |
Yes | |
| Items | complex | No | |
| _Name | string |
No | |
| _Type | const |
No |
ItemSeparator¶
To visually separate the items by adding a separator dot between the items. The ItemSeparator is only working for
Label item type.
- type:
boolean - default:
false
ItemType¶
ItemType is to define the type for Items defined in ExtendedHeader. For now, only same item type is supported for all items under the ExtendedHeader.
- type:
enum
The value of this property must be one of the known values listed below.
| Value | Description |
|---|---|
Label |
To display label(s) as extended header. |
Rating |
To display rating(s) as extended header. Only the first rating item would be displayed, others would be ignored. |
Tag |
To display tag(s) as extended header. |
Items¶
Contains items to be displayed in a row of ExtendedHeader. These items can be labels, status, rating controls, tags,
text.
- type: complex
Items Value¶
Any following options needs to be fulfilled.
Option 1¶
Array of extended header item. In Android, if there are more than one RatingItem defined in the array, only the first rating will be displayed.
Array type:
All items must be of the type:
Option 2¶
Expects return of ExtendedHeaderItem in array format.
_Name¶
- type:
string
_Type¶
- type:
const
The value of this property must be:
"CardHeader.Type.ExtendedHeader"