diff --git a/packages/docs/src/examples/v-data-table/slot-loading.vue b/packages/docs/src/examples/v-data-table/slot-loading.vue new file mode 100644 index 00000000000..a09ba5641ad --- /dev/null +++ b/packages/docs/src/examples/v-data-table/slot-loading.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/packages/docs/src/pages/en/components/data-tables/basics.md b/packages/docs/src/pages/en/components/data-tables/basics.md index 27b4b6e0d27..344d9ca6b67 100644 --- a/packages/docs/src/pages/en/components/data-tables/basics.md +++ b/packages/docs/src/pages/en/components/data-tables/basics.md @@ -196,6 +196,12 @@ When using the **group-by** prop, you can customize the group header with the `g +#### Loading slot + +The `loading` slot allows you to customize your table's display state when fetching data. In this example we utilize the [v-skeleton-loader](/components/skeleton-loaders) component to display a loading animation. + + + ## Examples The following are a collection of examples that demonstrate more advanced and real world use of the `v-data-table` component.