object:deleteRows()

Type Function
Library widget.*
Revision Release 2024.3703
Keywords table view, list view, TableViewWidget, deleteRows
See also widget.newTableView()
TableViewWidget

Overview

This method is used to delete rows contained inside a TableViewWidget.

Syntax

object:deleteRows( rowArray [, animationOptions] )
rowArray (required)

Array. A Lua array of row indices to delete, for example { 2,3,5 }.

animationOptions (optional)

Table. An optional table of time animation options for the deletion effect. This table accepts two parameters, slideLeftTransitionTime and slideUpTransitionTime, both of which represent a time in milliseconds for the animation.

Examples

Default Animation Time
tableView:deleteRows( { 2,3,5 } )
Custom Animation Time
tableView:deleteRows( { 2,3,5 }, { slideLeftTransitionTime=1200, slideUpTransitionTime=400 } )