0.5.3 • Published 4 years ago
web-framework-savvycom v0.5.3
Installation
// with npm
npm install web-framework-savvycom
// with yarn
yarn add web-framework-savvycomUsage
Here is a quick example to get you started, it's all you need:
Yes, it's really all you need to get started as you can see in this live and interactive demo:
Components
| Name | Description |
|---|---|
| TableUI | Table data |
| Filter | Table filter |
| NavigationUI | Horizontal Navigation bar |
| PaginationUI | Pagination |
| Sidebar | Sidebar |
API
TableUI
| Name | Type | Description |
|---|---|---|
| columnResponse | Array<Column< object >> | column names of table |
| dataResponse | Array< object > | data |
| api | string | url to call api |
| sortConfig | ISortField or Null | config sorted fields |
| onHandleSort | Function | handling sorted fields |
| totalPage | number | The total number of pages. |
| totalItems | number | The total number of items. |
| allowFilter | boolean | enable filter. |
| allowPagination | boolean | enable pagination. |
Filter
| Name | Type | Description |
|---|---|---|
| condition | IFilter | condition of filter |
| onHandleFilter | Function | handling filter |
| columns | Array<Column< object >> | columned filter |
PaginationUI
| Name | Type | Description |
|---|---|---|
| currentPageIndex | number | current page index number |
| pageCount | number | handling filter |
| onChangePage | Function | on handle change page number |
License
This project is licensed under the terms of the
0.5.3
4 years ago
0.5.2
4 years ago
0.5.1
4 years ago
0.5.0
4 years ago
0.4.9
4 years ago
0.4.8
4 years ago
0.4.7
4 years ago
0.4.6
4 years ago
0.4.5
4 years ago
0.4.4
4 years ago
0.4.3
4 years ago
0.4.2
4 years ago
0.4.1
4 years ago
0.4.0
4 years ago
0.3.9
4 years ago
0.3.8
4 years ago
0.3.7
4 years ago
0.3.6
4 years ago
0.3.5
4 years ago
0.3.4
4 years ago
0.3.3
4 years ago
0.3.2
4 years ago
0.3.1
4 years ago
0.3.0
4 years ago
0.2.8
4 years ago
0.2.7
4 years ago
0.2.6
4 years ago
0.2.5
4 years ago
0.2.4
4 years ago
0.2.3
4 years ago
0.2.2
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.9
4 years ago
0.1.8
4 years ago
0.1.7
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago