diff --git a/api-generator/components/virtualscroller.js b/api-generator/components/virtualscroller.js
index 35fab5cf6..31d19ef4e 100644
--- a/api-generator/components/virtualscroller.js
+++ b/api-generator/components/virtualscroller.js
@@ -153,15 +153,19 @@ const VirtualScrollerEvents = [
const VirtualScrollerSlots = [
{
name: 'item',
- description: 'Content for the item'
+ description: 'Content for the item.'
},
{
name: 'content',
- description: 'Custom content for the component'
+ description: 'Custom content for the component.'
},
{
name: 'loader',
- description: 'Custom content for the loader items'
+ description: 'Custom content for the loader items.'
+ },
+ {
+ name: 'loadingicon',
+ description: 'Custom loading icon template.'
}
];
diff --git a/components/lib/virtualscroller/VirtualScroller.d.ts b/components/lib/virtualscroller/VirtualScroller.d.ts
index 16cfe89d9..2898bfa82 100644
--- a/components/lib/virtualscroller/VirtualScroller.d.ts
+++ b/components/lib/virtualscroller/VirtualScroller.d.ts
@@ -308,6 +308,10 @@ export interface VirtualScrollerSlots {
*/
options: VirtualScrollerLoaderOptions;
}): VNode[];
+ /**
+ * Custom loading icon template.
+ */
+ loadingicon(): VNode[];
}
/**
diff --git a/components/lib/virtualscroller/VirtualScroller.vue b/components/lib/virtualscroller/VirtualScroller.vue
index 6bcaf9918..259d45927 100644
--- a/components/lib/virtualscroller/VirtualScroller.vue
+++ b/components/lib/virtualscroller/VirtualScroller.vue
@@ -31,7 +31,9 @@
-
+
+
+
@@ -42,6 +44,7 @@