TSTableViewExpandControlPanel Class Reference
Inherits from | UIScrollView |
Declared in | TSTableViewExpandControlPanel.h |
Overview
TSTableViewExpandControlPanel is subcomponent of TSTableView. It represents rows hierarchy of the table. Base layout is shown below:
TSTableViewExpandSection |
---|
+————————————+ |
| TSTableViewExpandSection |
| |
| +—————————-+ |
| | TSTableViewExpandSection |
| | |
| +—————————-+ |
| | TSTableViewExpandSection |
| | |
| +—————————-+ |
| | TSTableViewExpandSection |
| | |
Tasks
-
controlPanelDelegate
property -
dataSource
property -
maxNestingLevel
property -
– reloadData
-
– changeExpandStateForRow:toValue:animated:
-
– expandAllRowsWithAnimation:
-
– collapseAllRowsWithAnimation:
-
– isRowExpanded:
-
– isRowVisible:
-
– tableHeight
-
– tableTotalHeight
-
– panelWidth
-
– insertRowAtPath:animated:
-
– removeRowAtPath:animated:
Properties
controlPanelDelegate
@property (nonatomic, weak) id<TSTableViewExpandControlPanelDelegate> controlPanelDelegate
Instance Methods
changeExpandStateForRow:toValue:animated:
Change expand state of the row
- (void)changeExpandStateForRow:(NSIndexPath *)rowPath toValue:(BOOL)expanded animated:(BOOL)animated
Declared In
TSTableViewExpandControlPanel.h
collapseAllRowsWithAnimation:
Collapse all rows
- (void)collapseAllRowsWithAnimation:(BOOL)animated
Declared In
TSTableViewExpandControlPanel.h
expandAllRowsWithAnimation:
Expand all rows
- (void)expandAllRowsWithAnimation:(BOOL)animated
Declared In
TSTableViewExpandControlPanel.h
isRowExpanded:
Return row expand state
- (BOOL)isRowExpanded:(NSIndexPath *)rowPath
Declared In
TSTableViewExpandControlPanel.h
isRowVisible:
Return YES if all its parents are expanded
- (BOOL)isRowVisible:(NSIndexPath *)rowPath
Declared In
TSTableViewExpandControlPanel.h
panelWidth
Width of expand control panel. Updated in reloadData. Equal to maxNestingLevel * widthOfExpandItem
- (CGFloat)panelWidth
Declared In
TSTableViewExpandControlPanel.h