MenuItem¶
MenuItem in the MenuItem of ContextMenu
When assigning a rule to a property of MenuItem, the rule will be passed an instance of the following proxy class as an argument:
MenuItem Properties¶
| Property | Type | Required | Default |
|---|---|---|---|
| Image | Image | Yes | |
| Mode | enum |
No | "Normal" |
| OnSwipe | ActionOrRule | No | |
| Style | string |
No | |
| Text | string |
No | |
| _Name | string |
Yes | |
| _Type | const |
No |
Image¶
The image to display in the action button.
- type: Image
Mode¶
Constants indicating the style information that is applied to the action button. Deletion means an action that
deletes data or performs some type of destructive task.
- type:
enum - default:
"Normal"
The value of this property must be one of the known values listed below.
Mode Known Values¶
| Value | Description |
|---|---|
Normal |
|
Deletion |
OnSwipe¶
Action/Rule to be triggered when the user selects the action
- type: ActionOrRule
- Formatter and Binding are not supported
Style¶
A style that will be applied to the action button. MDK supports background-color and font-color for icon.
- type:
string
Text¶
The text displayed on the action button only on the iOS platform. It will be displayed when Image is defined and
Title, SubHead and Footnote are defined for Object Cell.
- type:
string
_Name¶
The unique name for the action button.
- type:
string
_Type¶
Type is currently supported only for ObjectCell.
- type:
const
The value of this property must be:
"ObjectCellContextMenu.Type.Item"