1.7.0 • Published 6 years ago
ui-package--table-component v1.7.0
Introduction:
This package was created to separate Views and Models. This package implements logic. Thus, you need create View.
Package ui-package--table-component-react
implements these models.
Solutions:
- You can use one model to create table for any frameworks. It can solve issue to supporting application with a few frameworks (like React and React Native).
- Simple testing.
- Simple extending. You can add or edit behavior. You can override models so, to it keep settings of table.
Example:
const builder = new TableBuilder()
const headColumnsFactory = () => (
builder
.getFactory()
.addHeader('name')
.addHeader('phone')
.getHeaders()
)
const bodyColumnsFactory = (entity) => (
builder
.getFactory()
.addBody('name', entity.name)
.addBody('phone', entity.phone)
.getBodies()
)
builder.buildColumnManager(headColumnsFactory, bodyColumnsFactory)
const table = builder.getTableFacade()
table.getSortManager().by('name') // DESC
table.getSortManager().by('name') // ASC
table.getSortManager().by('name') // DESC
table.getSortManager().by('phone', TABLE_SORT_ASC)
table.getSortManager().by('phone', TABLE_SORT_DESC)
table.getDensityManager().setDensity(3)
table.getPaginationManager().setCurrentPage(34)
table.getPaginationManager().next(entities)
// it returns sorted, filtered, paginated entities,
table.getEntities(entities)
Models:
1.7.0
6 years ago
1.6.0
6 years ago
1.5.1
6 years ago
1.5.0
6 years ago
1.4.9
6 years ago
1.4.8
6 years ago
1.4.7
6 years ago
1.4.6
6 years ago
1.4.5
6 years ago
1.4.4
6 years ago
1.4.3
6 years ago
1.4.2
6 years ago
1.4.1
6 years ago
1.4.0
6 years ago
1.3.2
6 years ago
1.3.1
6 years ago
1.3.0
6 years ago
1.2.3
6 years ago
1.2.2
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago