@porscheinformatik/clr-addons
Version: 
Addon components for Clarity Angular
16 lines (15 loc) • 668 B
TypeScript
import { InjectionToken } from '@angular/core';
import { ClrHistoryModel } from './history-model.interface';
export declare const HISTORY_PROVIDER: InjectionToken<any>;
/**
 * Interface to be implemented by a history provider to adjust the behavior of the history components.
 * */
export declare abstract class HistoryProvider {
    /**
     * Modifies the history entries before they are displayed. The list of modified entries will be shown to the user.
     *
     * @param entries The history entries before modification
     * @returns The modified history entries
     */
    abstract getModifiedHistoryEntries(entries: ClrHistoryModel[]): ClrHistoryModel[];
}