iOSMobileTable.ApplyActionsForRow
From Xojo Documentation
Event
iOSMobileTable.ApplyActionsForRow(section As Integer, row As Integer) As iOSMobileTableRowAction()
Supported on Mobile.
Supported on Mobile.
Use this event to specify the actions that can be performed for the given section/row.
Parameters
Parameter | Description |
---|---|
section | The section containing the row for which you want to specify actions. |
row | The row for which you want to specify actions. |
Notes
Returns an array of iOSMobileTableRowActions that will be available for the section/row.
Multiple actions are supported. Add each action to the array that is returned from the event.
Row actions only work for tables that use iOSMobileTableDataSourceEditing and where its RowIsEditable method returns True.
Sample Code
Adds two actions to every row in the table:
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
// 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