@sulzanoks/vue-datatable 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/datatable-card.es.js +1074 -1039
- package/dist/datatable-card.umd.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/Components/DatatableCard.vue +439 -412
package/README.md
CHANGED
|
@@ -53,6 +53,7 @@ export default {
|
|
|
53
53
|
The DatatableCard component accepts the following props:
|
|
54
54
|
|
|
55
55
|
- `cardTitle` (String): The title for the datatable card.
|
|
56
|
+
- `clickable-rows` (Boolean, optional, default: false): Set to true to enable `row-click` event.
|
|
56
57
|
- `columns` (Array): An array of column objects defining the datatable columns.
|
|
57
58
|
- `data` (String): The key to access the data for this column in the API response.
|
|
58
59
|
- `displayName` (String): The display name or label for this column.
|
|
@@ -114,6 +115,9 @@ These methods are meant to be used by component internally, but maybe you can fi
|
|
|
114
115
|
```
|
|
115
116
|
- `refresh()`: Clears all sorting and filters, reloads or clears data based on `loadDataOnInit` prop.
|
|
116
117
|
|
|
118
|
+
## Events
|
|
119
|
+
- `row-click`: Emitted when row is click if `clickable-rows` prop is set to true. The event payload contains the clicked row data.
|
|
120
|
+
|
|
117
121
|
## Compatibility
|
|
118
122
|
|
|
119
123
|
This component is designed to work with Laravel's [`yajra/laravel-datatables-oracle`](https://yajrabox.com/docs/laravel-datatables). It may work with other packages that use a similar input/output structure, but it has not been tested extensively with other packages.
|