Skip to content

Commit 2b0dccc

Browse files
Merge branch 'dev' into 'master'
Dev See merge request awes/wiki!11
2 parents 518d2a0 + 2865a10 commit 2b0dccc

File tree

3 files changed

+175
-204
lines changed

3 files changed

+175
-204
lines changed

docs/components/indigo-layout/1.7/components.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Ready-to-use Blade components and directives.
1717
### Usage
1818
```php
1919
@cardchartline([
20-
'parameters' => ['query_variable' => 7],
20+
'parameters' => ['query_variable'],
2121
'api_url' => '<!-- link to API -->'
2222
])
2323
```
@@ -44,7 +44,7 @@ Ready-to-use Blade components and directives.
4444
### Usage
4545
```php
4646
@cardchartdoughnut([
47-
'parameters' => ['query_variable' => 7],
47+
'parameters' => ['query_variable'],
4848
'api_url' => '<!-- link to API -->'
4949
])
5050
```
@@ -60,7 +60,7 @@ Ready-to-use Blade components and directives.
6060
### Usage
6161
```php
6262
@chart([
63-
'parameters' => ['query_variable' => 7],
63+
'parameters' => ['query_variable'],
6464
'api_url' => '<!-- link to API -->'
6565
])
6666
```
@@ -118,6 +118,7 @@ Ready-to-use Blade components and directives.
118118
| Name | Type | Default | Description |
119119
|------|------|---------|-------------|
120120
|`scope_api_url`|`string`| `optional` | The endpoint to get data for a table. Will ignore if `pagination` is `false`. |
121+
|`scope_api_params`|`array`| `['page', 'limit']` | The user-defined array of query string parameters for filtering. The compiled query will be sent to API endpoint. Provided array will be merged with default ones. |
121122
|`name`|`string`| `optional` | Name of the element. if not exist, will be a random string. |
122123
|`default_data`|`array`| `null` | Array with default data object. |
123124
|`store_data`|`string`| `optional` | Name of storage in Vue.js. if not exist, will be a random string. |

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)