Skip to content

Animaxx/A-DynamicTable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A-DynamicTable

### Structure

                         +--------------------------------+
                         | *SingleLineCollapsibleHeader   |
                         | *DynamicSectionGroupHeader     | +----------------------------+
+----------------------+ | *BasicCollapsibleHeader     <----+ CollapsibleHeader Protocol |
|  *SingleLineRow      | | *BasicEmptyHeader              | +----------------------------+
+----------------------+ +--------------------------------+
+----------------------+ +--------------------------------+
|                      | |                                |
|    DynamicRowModel   | |       DynamicHeaderModel       |
|                      | |                                |
+----------------------+ +--------------------------------+
+---------------------------------------------------------+
|                                                         |
|                   Dynamic Table From                    |
|                                                         |
+---------------------------------------------------------+
+---------------------------------------------------------+
|                                                         |
|                   Dynamic Table View                    |
|                                                         |
+---------------------------------------------------------+

DynamicTableView:
Inherited from UITableView, implemented UITableViewDelegate and UITableViewDataSource, the data information are base on DynamicForm.

DynamicForm
Custom collection class to storing Header Models and Row Models for that Dynamic Table.

HeaderModel

The basic header is DynamicHeaderModel, all other header models are derived from it. like BasicEmptyHeader, SingleLineCollapsibleHeader

RowModel

Same as header model, the the basic row model is DynamicRowModel and all other row model are derived from it.

Header Protocol

Header can have different function them display, like make the table able to collapse, or with section title. Header protocol is represeting it.

Usage

Row Model Usage

Header Model Usage

About

provide a mechanism to separate complex table cell logic and easy to reuse.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published