TSTableViewDataSource Protocol Reference
Conforms to | NSObject |
Declared in | TSTableViewDataSource.h |
Tasks
-
– numberOfColumns
required method -
– numberOfRows
required method -
– numberOfColumnsAtPath:
required method -
– numberOfRowsAtPath:
required method -
– heightForRowAtPath:
required method -
– tableView:cellViewForRowAtPath:cellIndex:
required method -
– tableView:headerSectionViewForColumnAtPath:
required method -
– heightForHeaderSectionAtPath:
-
– widthForExpandItem
-
– defaultWidthForColumnAtIndex:
-
– minimalWidthForColumnAtIndex:
-
– maximalWidthForColumnAtIndex:
Instance Methods
defaultWidthForColumnAtIndex:
Return default/prefered width for column at specified index
- (CGFloat)defaultWidthForColumnAtIndex:(NSInteger)index
Declared In
TSTableViewDataSource.h
heightForHeaderSectionAtPath:
Return height for header section at specified path
- (CGFloat)heightForHeaderSectionAtPath:(NSIndexPath *)columnPath
Declared In
TSTableViewDataSource.h
heightForRowAtPath:
Return height for row at specified path
- (CGFloat)heightForRowAtPath:(NSIndexPath *)indexPath
Declared In
TSTableViewDataSource.h
maximalWidthForColumnAtIndex:
Return maximal width for column at specified index
- (CGFloat)maximalWidthForColumnAtIndex:(NSInteger)index
Declared In
TSTableViewDataSource.h
minimalWidthForColumnAtIndex:
Return minimal width for column at specified index
- (CGFloat)minimalWidthForColumnAtIndex:(NSInteger)index
Declared In
TSTableViewDataSource.h
numberOfColumns
Total number of columns (including subcolumns) in table
- (NSInteger)numberOfColumns
Declared In
TSTableViewDataSource.h
numberOfColumnsAtPath:
Number of subcolumns at specified path
- (NSInteger)numberOfColumnsAtPath:(NSIndexPath *)indexPath
Parameters
- indexPath
- if nil, return number top level columns
Declared In
TSTableViewDataSource.h
numberOfRows
Total number of rows (including subrows) in table
- (NSInteger)numberOfRows
Declared In
TSTableViewDataSource.h
numberOfRowsAtPath:
Number of subrows at specified path
- (NSInteger)numberOfRowsAtPath:(NSIndexPath *)indexPath
Parameters
- indexPath
- if nil, return number top level rows
Declared In
TSTableViewDataSource.h
tableView:cellViewForRowAtPath:cellIndex:
Return height for header section at specified path
- (TSTableViewCell *)tableView:(TSTableView *)tableView cellViewForRowAtPath:(NSIndexPath *)indexPath cellIndex:(NSInteger)index
Declared In
TSTableViewDataSource.h
tableView:headerSectionViewForColumnAtPath:
Return height for header section at specified path
- (TSTableViewHeaderSectionView *)tableView:(TSTableView *)tableView headerSectionViewForColumnAtPath:(NSIndexPath *)indexPath
Declared In
TSTableViewDataSource.h
widthForExpandItem
Return width for expand item in left side control of panel
Total width of control panel would be calculated based on next expression: maxNesingLevel * widthForExpandItem
where maxNesingLevel is maximal depth of subrows hierarchy
- (CGFloat)widthForExpandItem
Declared In
TSTableViewDataSource.h