mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +00:00
Convert to PrimeVue monorepo
This commit is contained in:
parent
970ba75b06
commit
61929eae75
4144 changed files with 59008 additions and 36177 deletions
37
packages/primevue/scripts/components/deferredcontent.js
Normal file
37
packages/primevue/scripts/components/deferredcontent.js
Normal file
|
@ -0,0 +1,37 @@
|
|||
const DeferredContentProps = [
|
||||
{
|
||||
name: 'pt',
|
||||
type: 'any',
|
||||
default: 'null',
|
||||
description: 'Used to pass attributes to DOM elements inside the component.'
|
||||
},
|
||||
{
|
||||
name: 'unstyled',
|
||||
type: 'boolean',
|
||||
default: 'false',
|
||||
description: 'When enabled, it removes component related styles in the core.'
|
||||
}
|
||||
];
|
||||
|
||||
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
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue