Update virtualscroller doc and api-gen

This commit is contained in:
mertsincan 2021-12-05 20:20:13 +03:00
parent af36e84eeb
commit 16c0e43024
2 changed files with 110 additions and 28 deletions

View file

@ -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
}
};
};