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
| |

Properties

controlPanelDelegate

@property (nonatomic, weak) id<TSTableViewExpandControlPanelDelegate> controlPanelDelegate

dataSource

@property (nonatomic, weak) id<TSTableViewDataSource,TSTableViewAppearanceCoordinator> dataSource

maxNestingLevel

@property (nonatomic, assign, readonly) NSInteger maxNestingLevel

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

insertRowAtPath:animated:

- (void)insertRowAtPath:(NSIndexPath *)path animated:(BOOL)animated

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

reloadData

Reload expand rows data

- (void)reloadData

Declared In

TSTableViewExpandControlPanel.h

removeRowAtPath:animated:

- (void)removeRowAtPath:(NSIndexPath *)path animated:(BOOL)animated

tableHeight

Height of the table taking into account expanded/collapsed rows

- (CGFloat)tableHeight

Declared In

TSTableViewExpandControlPanel.h

tableTotalHeight

Height of the table with all rows expanded

- (CGFloat)tableTotalHeight

Declared In

TSTableViewExpandControlPanel.h