|
2 | 2 | title: test
|
3 | 3 | ---
|
4 | 4 | # grid
|
5 |
| -This is an example of creating a reusable grid component and using it with external data. |
6 | 5 |
|
7 |
| -::: tip Tags |
8 |
| -**version**: 1.0.5<br />**author**: [Rafael](https://github.com/rafaesc92)<br />**since**: Version 1.0.1<br /> |
9 |
| -::: |
| 6 | +> This is an example of creating a reusable grid component and using it with external data. |
10 | 7 |
|
11 |
| -## Table of contents |
12 |
| -[[toc]] |
| 8 | +Author: [Rafael](https://github.com/rafaesc92) |
13 | 9 |
|
14 |
| -## Props |
15 |
| - |
16 |
| -### msg (`string|number`) |
17 |
| -::: tip Tags |
18 |
| -**version**: 1.0.5<br />**since**: Version 1.0.1<br />**see**: See [Wikipedia](https://en.wikipedia.org/wiki/Web_colors#HTML_color_names) for a list of color names<br />**link**: See [Wikipedia](https://en.wikipedia.org/wiki/Web_colors#HTML_color_names) for a list of color names<br /> |
19 |
| -::: |
20 |
| - |
21 |
| - |
22 |
| -|type|default|description| |
23 |
| -|:-|:-|:-|:-| |
24 |
| -|`string|number`|text|object/array defaults should be returned from a factory function| |
25 |
| -### myF (`func`) |
| 10 | +Since: Version 1.0.1 |
26 | 11 |
|
| 12 | +Version: 1.0.5 |
27 | 13 |
|
28 |
| -|type|default|description| |
29 |
| -|:-|:-|:-|:-| |
30 |
| -|`func`|(param, param2) => {}|Function| |
31 |
| -### v-model (`string`) |
32 |
| -::: tip Tags |
33 |
| -**model**: true<br /> |
34 |
| -::: |
35 |
| - |
36 |
| - |
37 |
| -|type|default|description| |
38 |
| -|:-|:-|:-|:-| |
39 |
| -|`string`|-|Model example| |
40 |
| -### data (`array`) |
41 |
| -::: tip Tags |
42 |
| -**version**: 1.0.5<br /> |
43 |
| -::: |
44 |
| - |
| 14 | +## Props |
45 | 15 |
|
46 |
| -|type|default|description| |
47 |
| -|:-|:-|:-|:-| |
48 |
| -|`array`|-|describe data| |
49 |
| -### columns (`array`) |
| 16 | +| Prop name | Description | Type | Values | Default | |
| 17 | +| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | ------ | --------------------- | |
| 18 | +| msg | object/array defaults should be returned from a factory function<br/>`@version` 1.0.5<br/>`@since` Version 1.0.1<br/>`@see` See [Wikipedia](https://en.wikipedia.org/wiki/Web_colors#HTML_color_names) for a list of color names<br/>`@link` See [Wikipedia](https://en.wikipedia.org/wiki/Web_colors#HTML_color_names) for a list of color names | string\|number | - | text | |
| 19 | +| myF | Function | func | - | (param, param2) => {} | |
| 20 | +| v-model | Model example<br/>`@model` true | string | - | | |
| 21 | +| data | describe data<br/>`@version` 1.0.5 | array | - | | |
| 22 | +| columns | get columns list | array | - | | |
| 23 | +| filterKey | filter key<br/>`@ignore` true | string | - | 'example' | |
50 | 24 |
|
| 25 | +## Methods |
51 | 26 |
|
52 |
| -|type|default|description| |
53 |
| -|:-|:-|:-|:-| |
54 |
| -|`array`|-|get columns list| |
55 |
| -### filterKey (`string`) |
56 |
| -::: tip Tags |
57 |
| -**ignore**: true<br /> |
58 |
| -::: |
| 27 | +### sortBy |
59 | 28 |
|
| 29 | +> Sets the order |
60 | 30 |
|
61 |
| -|type|default|description| |
62 |
| -|:-|:-|:-|:-| |
63 |
| -|`string`|'example'|filter key| |
| 31 | +#### Params |
64 | 32 |
|
| 33 | +| Param name | Type | Description | |
| 34 | +| ---------- | ------ | ------------ | |
| 35 | +| key | string | Key to order | |
65 | 36 |
|
66 |
| -## Methods |
| 37 | +#### Return |
67 | 38 |
|
68 |
| -### sortBy (key: `string`) -> `string` |
69 |
| - Sets the order |
| 39 | +| Type | Description | |
| 40 | +| ------ | ----------- | |
| 41 | +| string | Test | |
70 | 42 |
|
71 |
| -::: tip Tags |
72 |
| -**access**: public<br />**version**: 1.0.5<br />**since**: Version 1.0.1<br />**param**: Key to order<br />**returns**: Test<br /> |
73 |
| -::: |
| 43 | +## Events |
74 | 44 |
|
75 |
| -#### Params |
76 |
| -| name | type | description |
77 |
| -|:-|:-|:-| |
78 |
| -|key|`string`|Key to order |
| 45 | +| Event name | Properties | Description | |
| 46 | +| ---------- | ----------------------------------------------------------------------------------------------------------------------------------- | -------------- | |
| 47 | +| success | **example** `object` - the demo example<br>**exampleStr** `string` - the demo example<br>**exampleNum** `number` - the demo example | Success event. | |
79 | 48 |
|
80 |
| -#### returns (string) |
81 |
| - Test |
82 | 49 | ## Slots
|
83 | 50 |
|
84 |
| -### header |
85 |
| -Use this slot header |
86 |
| -### footer |
87 |
| -Use this slot footer |
| 51 | +| Name | Description | Bindings | |
| 52 | +| ------ | -------------------- | -------- | |
| 53 | +| header | Use this slot header | | |
| 54 | +| footer | Use this slot footer | | |
| 55 | + |
| 56 | +--- |
88 | 57 |
|
| 58 | +# Home |
89 | 59 |
|
90 |
| -## Events |
| 60 | +## Section 1 |
91 | 61 |
|
92 |
| -### success (object | string) |
| 62 | +Section 1 |
93 | 63 |
|
94 |
| -Success event. |
95 |
| -#### Properties |
96 |
| -| name | type | description |
97 |
| -|:-|:-|:-| |
98 |
| -|example|`object`|the demo example |
99 |
| -|exampleStr|`string`|the demo example |
100 |
| -|exampleNum|`number`|the demo example |
| 64 | +## Section 2 |
101 | 65 |
|
| 66 | +Section 2 |
0 commit comments