32 lines
818 B
JavaScript
32 lines
818 B
JavaScript
const DeferredContentProps = [
|
|
{
|
|
name: 'pt',
|
|
type: 'any',
|
|
default: 'null',
|
|
description: 'Uses to pass attributes to DOM elements inside the component.'
|
|
}
|
|
];
|
|
|
|
const DeferredContentEvents = [
|
|
{
|
|
name: 'load',
|
|
description: 'Callback to invoke when deferred content is loaded..',
|
|
arguments: [
|
|
{
|
|
name: 'event',
|
|
type: 'object',
|
|
description: 'Event object'
|
|
}
|
|
]
|
|
}
|
|
];
|
|
|
|
module.exports = {
|
|
deferredcontent: {
|
|
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
|
|
}
|
|
};
|