Interface IDataProvider

base class for event dispatching using d3 event mechanism, thus .suffix is supported for multiple registrations

interface IDataProvider {
    columnTypes: { [columnType: string]: IColumnConstructor };
    aggregateAllOf(
        ranking: Ranking,
        aggregateAll: number | boolean | EAggregationState,
        groups?: IGroup[],
    ): void;
    clearFilters(): void;
    clone(col: Column): Column;
    create(desc: IColumnDesc): Column;
    createEventList(): string[];
    ensureOneRanking(): void;
    find(id: string): Column;
    fire(type: string | string[], ...args: any[]): void;
    forward(from: IEventHandler, ...types: string[]): void;
    fromDescRef(ref: any): IColumnDesc;
    getAggregationState(ranking: Ranking, group: IGroup): EAggregationState;
    getAggregationStrategy(): IAggregationStrategy;
    getColumns(): IColumnDesc[];
    getFirstRanking(): Ranking;
    getLastRanking(): Ranking;
    getRankings(): Ranking[];
    getRow(dataIndex: number): IDataRow | Promise<IDataRow>;
    getSelection(): number[];
    getShowTopN(): number;
    getTaskExecutor(): IRenderTasks;
    getTopNAggregated(ranking: Ranking, group: IGroup): number;
    getTotalNumberOfRows(): number;
    getTypeFactory(): ITypeFactory;
    isAggregated(ranking: Ranking, group: IGroup): boolean;
    isSelected(i: number): boolean;
    jumpToNearest(indices: number[]): any;
    listenersChanged(_type: string, _active: boolean): void;
    mappingSample(col: Column): ISequence<number> | Promise<ISequence<number>>;
    on(type: string | string[], listener: IEventListener): this;
    removeRanking(ranking: Ranking): void;
    searchAndJump(
        search: string | RegExp,
        col: Column,
        first?: boolean,
    ): void | number[];
    selectAllOf(ranking: Ranking): void;
    setAggregationState(
        ranking: Ranking,
        group: IGroup,
        state: EAggregationState,
    ): void;
    setSelection(dataIndices: IndicesArray): void;
    setShowTopN(value: number): void;
    setTopNAggregated(ranking: Ranking, group: IGroup, value: number): void;
    takeSnapshot(col: Column): void;
    toDescRef(desc: IColumnDesc): any;
    toggleSelection(i: number, additional?: boolean): boolean;
    unforward(from: IEventHandler, ...types: string[]): void;
}

Hierarchy (View Summary)

Implemented by

Properties

columnTypes: { [columnType: string]: IColumnConstructor }

Methods

  • forwards one or more events from a given dispatcher to the current one i.e. when one of the given events is fired in 'from' it will be forwarded to all my listeners

    Parameters

    • from: IEventHandler

      the event dispatcher to forward from

    • ...types: string[]

      the event types to forward

    Returns void

  • Parameters

    • search: string | RegExp
    • col: Column
    • Optionalfirst: boolean

    Returns void | number[]

  • Parameters

    • i: number
    • Optionaladditional: boolean

    Returns boolean