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

38 lines
947 B
TypeScript
Raw Normal View History

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
export interface DeferredContentSlots {
/**
* Default content slot.
*/
default: () => VNode[];
}
export declare type DeferredContentEmits = {
/**
* Callback to invoke when deferred content is loaded.
*/
2022-09-14 11:26:01 +00:00
load: () => void;
};
2022-09-06 12:03:37 +00:00
2022-09-14 11:26:01 +00:00
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;