diff --git a/src/views/datatable/DataTableScrollDemo.vue b/src/views/datatable/DataTableScrollDemo.vue
index 2c479d16a..fee25940b 100644
--- a/src/views/datatable/DataTableScrollDemo.vue
+++ b/src/views/datatable/DataTableScrollDemo.vue
@@ -11,7 +11,7 @@
Vertical
-
+
@@ -19,7 +19,7 @@
Virtual Scroll
-
@@ -44,7 +44,7 @@
Horizontal and Vertical
-
+
@@ -56,7 +56,7 @@
Frozen Rows
-
+
@@ -64,7 +64,7 @@
Frozen Columns
-
+
{{slotProps.data.vin}}
@@ -109,7 +109,8 @@ export default {
cars: null,
frozenCars: null,
lazyCars: null,
- lazyTotalRecords: 0
+ lazyTotalRecords: 0,
+ loading: false
}
},
carService: null,
@@ -161,8 +162,15 @@ export default {
];
},
mounted() {
- this.carService.getCarsLarge().then(data => this.cars = data);
+ this.loading = true;
+ setTimeout(() => {
+ this.carService.getCarsLarge().then(data => {
+ this.cars = data
+ this.loading = false;
+ });
+ }, 150);
+
this.frozenCars = [
{brand: "BMW", year: 2013, color: "Grey", vin: "fh2uf23"},
{brand: "Chevrolet", year: 2011, color: "Black", vin: "4525g23"}