Skip to content

Commit 2865a10

Browse files
Component "awes-io/table-builder" was updated to v1.1
1 parent 5ccda1e commit 2865a10

File tree

2 files changed

+171
-201
lines changed

2 files changed

+171
-201
lines changed

docs/components/table-builder/1.1/paginate-builder.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,20 @@
88

99
It is a component of dynamic forms. It uses the global `Vuex` store.
1010

11-
When data are downloaded from the server, the component gets the CSS class `.is-loading`.
12-
1311
## Example of using the component
1412

1513
```html
16-
<paginate-builder store-data="table" url="test-data.json"></paginate-builder>
14+
<paginate-builder :meta="{current_page: 1, from: 1, last_page: 12, path: 'https:\/\/local.awes.io\/example-package', per_page: 15, to: 12, total: 12}"></paginate-builder>
1715
```
1816

19-
<paginate-builder store-data="paginate-test" url="/" :default="{data:[1,2,3],meta:{current_page: 1, from: 1, last_page: 12, path: 'https:\/\/local.awes.io\/example-package', per_page: 15, to: 12, total: 12}}"></paginate-builder>
17+
<paginate-builder :meta="{current_page: 1, from: 1, last_page: 12, path: 'https:\/\/local.awes.io\/example-package', per_page: 15, to: 12, total: 12}"></paginate-builder>
2018

2119

2220
## Component properties
2321

2422
| Name | Type | Default | Description |
2523
|--------------------|:---------------:|:-----------------:|----------------------------------------------|
26-
| **store-data (*)** | `String` | `undefined` | Data identifier in the store |
27-
| **default** | `Array, Object` | `undefined` | Pagination data + data for displaying |
28-
| **url (*)** | `String` | `undefined` | Address for data request |
24+
| **meta** | `Object` | `undefined` | Pagination data |
2925
| **scroll-to** | `String` | `'body'` | Element to be scrolled to after you go |
3026

3127
### Data format for the pagination

0 commit comments

Comments
 (0)