File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,26 +98,12 @@ let dataSource = RxTableViewSectionedReloadDataSource<SectionOfCustomData>(
98983 ) Customize closures on the dataSource as needed:
9999- ` titleForHeaderInSection `
100100- ` titleForFooterInSection `
101- - ` canEditRowAtIndexPath `
102- - ` canMoveRowAtIndexPath `
103101- etc
104102
105103``` swift
106104dataSource.titleForHeaderInSection = { dataSource, index in
107105 return dataSource.sectionModels [index].header
108106}
109-
110- dataSource.titleForFooterInSection = { dataSource, indexPath in
111- return dataSource.sectionModels [index].footer
112- }
113-
114- dataSource.canEditRowAtIndexPath = { dataSource, indexPath in
115- return true
116- }
117-
118- dataSource.canMoveRowAtIndexPath = { dataSource, indexPath in
119- return true
120- }
121107```
122108
1231094 ) Define the actual data as an Observable sequence of CustomData objects and bind it to the tableView
You can’t perform that action at this time.
0 commit comments