-
-
Notifications
You must be signed in to change notification settings - Fork 458
5.2. Adding & Changing & Removing
Evren Coşkun edited this page Jan 20, 2020
·
1 revision
As of version 0.8.5.1
, TableView has some helper functions to change the desired cell item model easily. These are the following:
- To add a row:
addRow(int rowPosition, YourRowHeaderModel rowHeaderItem, List<YourCellItemModel> cellItems)
- To add multiple rows:
addRowRange(int rowPositionStart, List<YourRowHeaderModel> rowHeaderItem, List<List<YourCellItemModel>> cellItems)
- To remove a row:
removeRow(int rowPosition)
- To remove multiple rows:
removeRowRange(int rowPositionStart, int itemCount)
- To update a row header:
changeRowHeaderItem(int rowPosition, YourRowHeaderModel rowHeaderModel)
- To update multiple row headers:
changeRowHeaderItemRange(int rowPositionStart, List<YourRowHeaderModel> rowHeaderModelList)
- To update a cell item:
changeCellItem(int columnPosition, int rowPosition, YourCellItemModel cellModel)
- To update a column header:
changeColumnHeader(int columnPosition, YourColumnHeaderModel columnHeaderModel)
- To update multiple column headers:
changeColumnHeaderRange(int columnPositionStart, List<YourColumnHeaderModel> columnHeaderModelList)
Note:TableViewSample 2 app also shows usage of these helper methods.