primevue-mirror/apps/showcase/api-generator/components/deferredcontent.js

38 lines
994 B
JavaScript
Raw Normal View History

const DeferredContentProps = [
{
name: 'pt',
type: 'any',
default: 'null',
2023-08-01 14:01:12 +00:00
description: 'Used to pass attributes to DOM elements inside the component.'
2023-07-06 13:20:37 +00:00
},
{
name: 'unstyled',
type: 'boolean',
default: 'false',
description: 'When enabled, it removes component related styles in the core.'
}
];
const DeferredContentEvents = [
{
2022-09-14 14:26:41 +00:00
name: 'load',
description: 'Callback to invoke when deferred content is loaded..',
arguments: [
{
2022-09-14 14:26:41 +00:00
name: 'event',
type: 'object',
description: 'Event object'
}
]
}
];
module.exports = {
deferredcontent: {
2022-09-14 14:26:41 +00:00
name: 'DeferredContent',
description: 'DeferredContent postpones the loading the content that is initially not in the viewport until it becomes visible on scroll.',
props: DeferredContentProps,
events: DeferredContentEvents
}
};