@sulzanoks/vue-datatable 0.0.10 → 0.0.11
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 +3 -0
- package/dist/datatable-card.es.js +385 -365
- package/dist/datatable-card.umd.js +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/Components/DatatableCard.vue +54 -14
package/README.md
CHANGED
|
@@ -59,6 +59,7 @@ The DatatableCard component accepts the following props:
|
|
|
59
59
|
- `name` (String): The unique name or identifier for this column.
|
|
60
60
|
- `searchable` (Boolean, optional, default: true): Set to `false` to disable searching for this column.
|
|
61
61
|
- `sortable` (Boolean, optional, default: true): Set to `false` to disable sorting for this column.
|
|
62
|
+
- `visible` (Boolean, optional, default: true): Set to `false` to remove column from table.
|
|
62
63
|
- `linkParams` (Object, optional): Defines link parameters for generating Vue.js style links.
|
|
63
64
|
- `name` (String): The name of the Vue.js route to navigate to when clicking the link.
|
|
64
65
|
- `resourceIds` (Array): An array of resource IDs to use in generating the link. Replace with actual resource IDs.
|
|
@@ -71,6 +72,7 @@ The DatatableCard component accepts the following props:
|
|
|
71
72
|
- `cardIcon` (String, optional, default: null): The name of an icon from [Google Icons](https://fonts.google.com/icons) to display in the card's header. Provide the icon name without any additional markup, such as `<i>` tags. For example, if you want to use the "account_circle" icon, set this prop to `'account_circle'`. If not specified, no icon will be displayed in the card's header.
|
|
72
73
|
- `cardClasses` (String, optional, default: null): Additional CSS classes to apply to the card.
|
|
73
74
|
- `createLink` (String, optional, default: null): A link or URL to navigate to when clicking a "Create" button or link within the card.
|
|
75
|
+
- `requestQueryParams` (Object, optional): additional request query parameters to include when loading data from server.
|
|
74
76
|
|
|
75
77
|
## Internal Methods
|
|
76
78
|
|
|
@@ -104,6 +106,7 @@ These methods are meant to be used by component internally, but maybe you can fi
|
|
|
104
106
|
}
|
|
105
107
|
]);
|
|
106
108
|
```
|
|
109
|
+
- `refresh()`: Clears all sorting and filters, reloads or clears data based on `loadDataOnInit` prop.
|
|
107
110
|
|
|
108
111
|
## Compatibility
|
|
109
112
|
|