ContextMenu¶
Define the contextmenu for the Cell. On the iOS platform, the context menu will display only when turning off all sections' selection if the metadata contains the context menu and multiple selections at the same time.
ContextMenu Properties¶
Property | Type | Required | Default |
---|---|---|---|
Items | MenuItem | No | |
LeadingItems | string[] |
No | |
PerformFirstActionWithFullSwipe | boolean |
No | true |
TrailingItems | string[] |
No | |
_Name | string |
No | |
_Type | const |
No |
Items¶
Define all the swipe actions.
- type:
MenuItem[]
All array items must be of the type: MenuItem
LeadingItems¶
List of unique name from contextmenu for displaying swipe action at the leading position. MDK only display the 1st action on the Android platform.
- type:
string[]
All items must be of the type: string
PerformFirstActionWithFullSwipe¶
A Boolean value indicating whether a full swipe automatically performs the first action. It's only for the iOS platform.
- type:
boolean
- default:
true
TrailingItems¶
List of unique name from contextmenu for displaying swipe action at the trailing position. MDK only display the 1st action on the Android platform.
- type:
string[]
All items must be of the type: string
_Name¶
- type:
string
_Type¶
Type is currently supported only for ObjectCell.
- type:
const
The value of this property must be:
"ObjectCell.Type.ContextMenu"