@ux-aspects/ux-aspects
Version:
Open source user interface framework for building modern, responsive, mobile big data applications
41 lines (40 loc) • 1.9 kB
TypeScript
import { AfterViewInit, OnDestroy } from '@angular/core';
import { VirtualForDirective } from './virtual-for.directive';
import * as i0 from "@angular/core";
export declare class VirtualForContainerComponent<T> implements AfterViewInit, OnDestroy {
/** Get the ElementRef of the container element */
private readonly _elementRef;
/** A service to share values between the container and child elements */
private readonly _virtualScroll;
/** Handle key presses if there is a tabbable list */
private readonly _tabbableList;
/** Define the height of each virtual item */
set itemSize(itemSize: number);
get itemSize(): number;
/** Store the container height */
_totalHeight: number;
/** Keep a local reference of the dataset */
private _dataset;
/** Store the current visible range */
private _range;
/** Indicate if the component has finished initialising */
private _initialized;
/** Unsubscribe from all observables */
private readonly _onDestroy;
/** Determine if this is a table */
get _isTable(): boolean;
/** Determine if this is a list */
get _isList(): boolean;
/** Access the uxVirtualFor child directive */
virtualFor: VirtualForDirective<T>;
ngAfterViewInit(): void;
ngOnDestroy(): void;
updateContainer(): void;
/** If cells are automatically getting their height detected you may want to update the size */
recalculateCellSize(): void;
onKeydown(event: KeyboardEvent, keyCode: number): void;
private getScrollOffset;
private getContainerHeight;
static ɵfac: i0.ɵɵFactoryDeclaration<VirtualForContainerComponent<any>, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<VirtualForContainerComponent<any>, "[uxVirtualForContainer]", never, { "itemSize": { "alias": "itemSize"; "required": false; }; }, {}, ["virtualFor"], ["*"], false, never>;
}