Type Function Library widget.* Revision Release 2024.3703 Keywords table view, list view, TableViewWidget, deleteRows See also widget.newTableView() TableViewWidget
This method is used to delete rows contained inside a TableViewWidget.
object:deleteRows( rowArray [, animationOptions] )
Array. A Lua array of row indices to delete, for example { 2,3,5 }
.
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.
tableView:deleteRows( { 2,3,5 } )
tableView:deleteRows( { 2,3,5 }, { slideLeftTransitionTime=1200, slideUpTransitionTime=400 } )