iOSMobileTableRowAction
From Xojo Documentation
This class is supported on Mobile. Use #If...#Endif with the Target... constants to ensure you only use this class where it is supported. |
New in 2020r2
An iOSMobileTableRowAction represents a single action that a user can take when swiping horizontally on an iOSMobileTable row. Multiple actions may be added. As of iOS 8 an action is presented as a button near the trailing edge of the row. This class is used in conjunction with the iOSMobileTable.ApplyActionsForRow event.
Properties | ||||
|
Enumerations | |
|
Constructors | |
|
Notes
Row actions only work for tables that use iOSMobileTableDataSourceEditing and where its AllowRowEditing method returns True.
Sample Code
This class is used in the iOSMobileTable.ApplyActionsForRow event to set up the actions. The iOSMobileTable.RowActionSelected event is called when an action is used. This is how you would set it up in the iOSMobileTable events:
Var actions(1) As iOSMobileTableRowAction
' Create the More button
actions(0) = New iOSMobileTableRowAction(iOSMobileTableRowAction.Styles.Normal, "More...", "More")
' Create the Delete button
actions(1) = New iOSMobileTableRowAction(iOSMobileTableRowAction.Styles.Destructive, "Delete", "Delete")
Return actions
End Event
Event RowActionSelected(section As Integer, row As Integer, actionTag As Variant)
Select Case actionTag
Case "More"
// ... show more info
Case "Delete"
// ... delete something
End Select
End Event
See Also
iOSMobileTable class.