You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| busy | false | enables spinner for loading data |
77
-
78
-
### Slots
79
-
80
-
| Props | Description |
81
-
| --- | --- |
82
-
| items | table data |
83
-
| fields | data fields |
84
-
| #cell:FIELD_NAME| used for overwrite |
85
-
| #row-details | row details, you need to use row.toggleDetails(row.item) within a template that contains an icon/button to toggle it |
86
-
| #header-row | used for additional row up the header |
87
-
| #footer-row | used for show table footer row |
88
-
89
-
slot 'cell:' has item or data props
90
-
91
-
item retrieves the row value
92
-
93
-
```html
94
-
<template#cell:username="{ item }">
95
-
{{ item.emoji }} - {{ item.username }}
96
-
</template>
97
-
```
98
-
99
-
data retrieves the field value
100
-
101
-
```html
102
-
<template#cell:username="{ data }">
103
-
{{ data }}
104
-
</template>
105
-
```
106
-
107
-
### Events
108
-
109
-
| Event | Description |
110
-
| --- | --- |
111
-
| updateSortable | emit the sortable field/fields |
112
-
| changePage | emit the page change |
113
-
| checkRow | emit the row item when user click on row checkbox |
114
-
| rowClicked | emit the row item when user click on row |
115
-
116
-
##### Notes
117
-
118
-
##### Any __@click__ event of elements within the row triggers the rowClicked event, to get around this we need to __use @click.stop to prevent the propagation of the event__
119
-
120
-
<hr>
121
-
122
-
## Fields
123
-
### Props
124
-
125
-
| Props | Description |
126
-
| --- | --- |
127
-
| key | th Title |
128
-
| label | index of value |
129
-
| sortable | the default setting is false, if set to true a symbol appears for sorting |
130
-
| thStyle | used for overwrite the th style |
131
-
| tdStyle | used for overwrite the td style |
132
-
| thClass | used for overwrite the th class |
133
-
| tdClass | used for overwrite the td class |
134
-
|_showDetails | used for show row details (default false) |
135
-
136
35
<hr>
137
36
138
37
This project is licensed under the MIT license. See [LICENSE](LICENSE).
0 commit comments