diff --git a/api-generator/components/virtualscroller.js b/api-generator/components/virtualscroller.js index 75afb734e..54c080fb8 100644 --- a/api-generator/components/virtualscroller.js +++ b/api-generator/components/virtualscroller.js @@ -1,4 +1,22 @@ const VirtualScrollerProps = [ + { + name: "id", + type: "string", + default: "null", + description: "Unique identifier of the element." + }, + { + name: "style", + type: "any", + default: "null", + description: "Inline style of the component." + }, + { + name: "class", + type: "string", + default: "null", + description: "Style class of the component." + }, { name: "items", type: "array", @@ -47,27 +65,50 @@ const VirtualScrollerProps = [ default: "false", description: "Defines if data is loaded and interacted with in lazy manner." }, + { + name: "disabled", + type: "boolean", + default: "false", + description: "If disabled, the VirtualScroller feature is eliminated and the content is displayed directly." + }, + { + name: "loaderDisabled", + type: "boolean", + default: "false", + description: "Used to implement a custom loader instead of using the loader feature in the VirtualScroller." + }, + { + name: "loading", + type: "boolean", + default: "false", + description: "Whether the data is loaded." + }, + { + name: "showSpacer", + type: "boolean", + default: "true", + description: "Used to implement a custom spacer instead of using the spacer feature in the VirtualScroller." + }, { name: "showLoader", type: "boolean", default: "false", description: "Whether to show loader." - }, - { - name: "style", - type: "any", - default: "null", - description: "Inline style of the component." - }, - { - name: "class", - type: "string", - default: "null", - description: "Style class of the component." } ]; const VirtualScrollerEvents = [ + { + name: "scroll", + description: "Callback to invoke when scroll position changes.", + arguments: [ + { + name: "event", + type: "any", + description: "Browser event." + } + ] + }, { name: "scroll-index-change", description: "Callback to invoke when scroll position and item's range in view changes.", @@ -125,4 +166,4 @@ module.exports = { events: VirtualScrollerEvents, slots: VirtualScrollerSlots } -}; \ No newline at end of file +}; diff --git a/src/views/virtualscroller/VirtualScrollerDoc.vue b/src/views/virtualscroller/VirtualScrollerDoc.vue index 9f118e9b2..75c7c0b6b 100644 --- a/src/views/virtualscroller/VirtualScrollerDoc.vue +++ b/src/views/virtualscroller/VirtualScrollerDoc.vue @@ -122,6 +122,24 @@ export default {
+