UNPKG

@adaptabletools/adaptable

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

25 lines (24 loc) 1.4 kB
import { AlertDefinition } from '../../../AdaptableState/AlertState'; import { CellDataChangedInfo } from '../../../AdaptableState/Common/CellDataChangedInfo'; import { RowDataChangedInfo } from '../../../AdaptableState/Common/RowDataChangedInfo'; import { IAdaptableService } from './IAdaptableService'; export type ReactiveAlertInfo = ReactiveRowDataChangedAlertInfo | ReactiveCellDataChangedAlertInfo; export type ReactiveRowDataChangedAlertInfo = { type: 'rowDataChangedAlert'; alertDefinition: AlertDefinition; gridChangeLogEntry: RowDataChangedInfo; }; export type ReactiveCellDataChangedAlertInfo = { type: 'cellDataChangedAlert'; alertDefinition: AlertDefinition; cellChangeLogEntry: CellDataChangedInfo; }; export interface IAlertService extends IAdaptableService { createReactiveAlert(alertDefinition: AlertDefinition): void; deleteReactiveAlert(alertDefinition: AlertDefinition): void; onReactiveAlertTriggered(callback: (payload: ReactiveAlertInfo) => void): () => void; getReactiveActiveAlerts(): AlertDefinition[]; isReactiveAlertActive(alertDefinition: AlertDefinition): boolean; } export declare const isRowDataChangedInfo: (value: CellDataChangedInfo | RowDataChangedInfo) => value is RowDataChangedInfo<any>; export declare const isCellDataChangedInfo: (value: CellDataChangedInfo | RowDataChangedInfo) => value is CellDataChangedInfo<any>;