iOSMobileTableRowAction.Constructor(style As Styles, title As String, Optional tag As Variant)

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Constructor

iOSMobileTableRowAction.Constructor(style As Styles, title As String, Optional tag As Variant)

Create a new row action that can be returned in iOSMobileTable.ApplyActionsForRow.

Parameters

Parameter Description
style A value from the Styles enum to indicate how the row action displays.
title The title of the button. This is displayed to the user and therefore should be localized.
tag A value to associate with the action. This value will be passed into the iOSMobileTable.RowActionSelected event and allows you to determine which action was selected. As an Auto, there are no limitations on the value you supply.

Sample Code

Creates a single action to delete a row (code in in iOSMobileTable.ApplyActionsForRow event):

Var actions(0) As iOSMobileTableRowAction
// Create the Delete button
actions(0) = New iOSMobileTableRowAction(iOSMobileTableRowAction.Styles.Destructive, "Delete", "Delete")
Return actions