ActionItem¶
When assigning a rule to a property of ActionItem, the rule will be passed an instance of the following proxy class as an argument:
ActionItem Properties¶
| Property | Type | Required | Default |
|---|---|---|---|
| OnPress | complex | No | |
| Style | string |
No | |
| Title | string |
No | |
| Visible | boolean |
No | true |
| _Name | string |
No | |
| _Type | const |
No |
OnPress¶
Action or rule to be performed when the event is triggered.
- type: complex
OnPress Value¶
Any following options needs to be fulfilled.
Option 1¶
- ActionOrRule
- Formatter and Binding are not supported
Option 2¶
Style¶
It supports font-color, normal background-color and highlighted background-color for the button.
- type:
string
Title¶
Label to be displayed on the button. For Android, the text is always in upper case and cannot be styled to contain lower case letters.
- type:
string
Visible¶
Set the visibility of the button.
- type:
boolean - default:
true
_Name¶
If _Name is not provided, the _Type + current row index + primary/secondary will be used as the name of the action item.
If _Name is provided and belongs to a static ObjectCard, it will be used as the name of the action item.
If _Name is provided and belongs to a dynamic ObjectCard, the name + current row index + primary/secondary will be used as the name of the action item.
- type:
string
_Type¶
- type:
const
The value of this property must be:
"ObjectCard.Type.ActionItem"