@koalarx/ui
Version:
Koala UI is a Design System developed in Angular whose objective is to facilitate and make your development faster and simpler, making this framework your greatest ally.
33 lines (32 loc) • 2.09 kB
TypeScript
import { KoalaListConfigInterface } from "../koala.list-config.interface";
import { KoalaListItemInterface } from "../koala-list-item.interface";
import { Type } from "@angular/core";
import { KoalaListFilterInterface } from "../koala-list-filter.interface";
import { BehaviorSubject, Observable } from "rxjs";
import { KoalaListFormFilterInterface } from "../koala-list-form-filter.interface";
import { KoalaListItemMenuOptionInterface } from "../koala-list-item-menu-option.interface";
import { SelectionModel } from "@angular/cdk/collections";
import { KoalaListPageSize } from "../list.abstract";
import { KoalaListBtnCollapseSubListConfigInterface } from "../koala-list-btn-collapse-sub-list-config.interface";
export declare class ListBuilder<DataType> {
private config;
service(service: (filter: BehaviorSubject<KoalaListFormFilterInterface>) => Observable<any> | Promise<any>, type?: 'all' | 'onDemand', resultIndexName?: string, qtdResultIndexName?: string): this;
filterConfig(config: KoalaListFilterInterface): this;
defaultFilter(config: KoalaListFormFilterInterface): this;
pageSize(size: KoalaListPageSize): this;
columns(columns: string[]): this;
itemColumn(item: KoalaListItemInterface<DataType>): this;
actionList(item: KoalaListItemMenuOptionInterface<DataType>): this;
getDataSource(fn: (dataSource: DataType[]) => void): this;
getSelectionList(fn: (selection: SelectionModel<DataType>) => void): this;
emptyListComponent(component: Type<any>, data?: any): this;
errorListComponent(component: Type<any>, data?: any): this;
disableCheckboxItemList(fn: (item: DataType) => boolean): this;
setSubList(config: (item: DataType) => KoalaListConfigInterface): this;
defineBtnCollapseSubListConfig(config: KoalaListBtnCollapseSubListConfigInterface<DataType>): this;
hidePaginator(hide?: boolean): this;
setCustomClass(className: string): this;
getConfig(): KoalaListConfigInterface;
setLimitOptions(options: number[]): void;
addLimitOption(limit: number): void;
}