@rx-angular/cdk
Version:
@rx-angular/cdk is a Component Development Kit for ergonomic and highly performant angular applications. It helps to to build Large scale applications, UI libs, state management, rendering systems and much more. Furthermore the unique way of mixing reacti
18 lines (17 loc) • 903 B
TypeScript
import { IterableDiffers, NgIterable, TemplateRef, TrackByFunction } from '@angular/core';
import { RxStrategyNames } from '@rx-angular/cdk/render-strategies';
import { Observable } from 'rxjs';
import { RxListViewComputedContext, RxListViewContext } from './list-view-context';
import { RxListTemplateSettings, RxRenderSettings } from './model';
export interface RxListManager<T> {
nextStrategy: (config: RxStrategyNames | Observable<RxStrategyNames>) => void;
render(changes$: Observable<NgIterable<T>>): Observable<NgIterable<T> | null>;
}
export declare function createListTemplateManager<T, C extends RxListViewContext<T>>(config: {
renderSettings: RxRenderSettings;
templateSettings: RxListTemplateSettings<T, C, RxListViewComputedContext> & {
templateRef: TemplateRef<C>;
};
trackBy: TrackByFunction<T>;
iterableDiffers: IterableDiffers;
}): RxListManager<T>;