Icard/angular-clarity-master(work.../node_modules/primeng/virtualscroller/virtualscroller.interface.d.ts

73 lines
1.5 KiB
TypeScript
Raw Normal View History

2024-07-16 15:23:22 +00:00
import { TemplateRef } from '@angular/core';
import { ScrollerOptions } from 'primeng/api';
/**
* Custom lazy load event.
* @see {@link VirtualScroller.onLazyLoad}
*/
export interface VirtualScrollerLazyLoadEvent {
/**
* Index of the first element in viewport.
*/
first?: number;
/**
* Index of the last element in viewport.
*/
last?: number;
/**
* Row count.
*/
rows?: number;
/**
* Manually triggers change detection.
*/
forceUpdate?: Function;
}
/**
* Defines valid templates in VirtualScroller.
* @group Templates
*/
export interface VirtualScrollerTemplates {
/**
* Custom item template.
* @param {Object} context - item data.
*/
item(context: {
/**
* Item instance.
*/
$implicit: any;
/**
* Scroller options.
*/
options: ScrollerOptions;
}): TemplateRef<{
$implicit: any;
options: ScrollerOptions;
}>;
/**
* Custom loading item template.
* @param {Object} context - item data.
*/
item(context: {
/**
* Item instance.
*/
$implicit: any;
/**
* Scroller options.
*/
options: ScrollerOptions;
}): TemplateRef<{
$implicit: any;
options: ScrollerOptions;
}>;
/**
* Custom header template.
*/
header(): TemplateRef<any>;
/**
* Custom header template.
*/
footer(): TemplateRef<any>;
}