iOSMobileTableDataSourceEditing

From Xojo Documentation

Revision as of 15:33, 17 November 2020 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Interface


A data source to use to enable editing of iOSTable data. When a table is put into "edit mode", the user can use the insertion and deletion editing controls to add or remove rows from the table and its data source. Aggregates iOSMobileTableDataSource.

Methods
AllowRowEditing RowData SectionCount
RowCount RowEditingCompleted SectionTitle

Notes

Any data source that supports deletion and insertion of rows or that uses row actions must implement this interface.

When the iOSMobileTable is made editable (by setting iOSMobileTable.IsEditing = True):

  • The data source's AllowRowEditing method is called for the visible rows and the editable rows get reordering controls.
  • The user taps on a row's delete or insert button.
  • The data source's RowEditingCompleted method is called so the data source can update its internal state.

See Also

iOSMobileTable control; iOSMobileTableDataSource, iOSMobileTableDataSourceReordering interfaces