primevue-mirror/components/deferredcontent/DeferredContent.d.ts

64 lines
1.6 KiB
TypeScript
Raw Normal View History

2023-02-28 15:38:13 +00:00
/**
*
* DeferredContent postpones the loading the content that is initially not in the viewport until it becomes visible on scroll.
*
* [Live Demo](https://www.primevue.org/deferredcontent/)
*
* @module deferredcontent
*
*/
2022-09-06 12:03:37 +00:00
import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2022-09-14 11:26:01 +00:00
export interface DeferredContentProps {}
2022-09-06 12:03:37 +00:00
2023-02-28 15:38:13 +00:00
/**
* Defines valid slots in DeferredContent component.
*/
2022-09-06 12:03:37 +00:00
export interface DeferredContentSlots {
/**
* Default content slot.
*/
2023-02-28 15:38:13 +00:00
default(): VNode[];
2022-09-06 12:03:37 +00:00
}
2023-02-28 15:38:13 +00:00
/**
* Defines valid emits in DeferredContent component.
*/
export interface DeferredContentEmits {
2022-09-06 12:03:37 +00:00
/**
* Callback to invoke when deferred content is loaded.
*/
2023-02-28 15:38:13 +00:00
load(): void;
}
2022-09-06 12:03:37 +00:00
2023-02-28 15:38:13 +00:00
/**
* **PrimeVue - DeferredContent**
*
* _DeferredContent postpones the loading the content that is initially not in the viewport until it becomes visible on scroll._
*
* [Live Demo](https://www.primevue.org/deferredcontent/)
* --- ---
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo.svg)
*
* @group Component
*/
export declare class DeferredContent extends ClassComponent<DeferredContentProps, DeferredContentSlots, DeferredContentEmits> {}
2022-09-06 12:03:37 +00:00
declare module '@vue/runtime-core' {
interface GlobalComponents {
2022-09-14 11:26:01 +00:00
DeferredContent: GlobalComponentConstructor<DeferredContent>;
2022-09-06 12:03:37 +00:00
}
}
/**
*
* DeferredContent postpones the loading the content that is initially not in the viewport until it becomes visible on scroll.
*
* Demos:
*
2022-09-14 11:26:01 +00:00
* - [DeferredContent](https://www.primefaces.org/primevue/deferredcontent)
2022-09-06 12:03:37 +00:00
*
*/
export default DeferredContent;