Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDataProvider

Hierarchy

  • default
    • IDataProvider

Implemented by

Index

Properties

columnTypes: {}

Type declaration

Methods

  • clearFilters(): void
  • createEventList(): string[]
  • return the list of events to be able to dispatch

    Returns string[]

    by default no events

  • ensureOneRanking(): void
  • fire(type: string | string[], ...args: any[]): void
  • forward(from: IEventHandler, ...types: string[]): void
  • 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

    • Rest ...types: string[]

      the event types to forward

    Returns void

  • getSelection(): number[]
  • getShowTopN(): number
  • getTotalNumberOfRows(): number
  • isSelected(i: number): boolean
  • listenersChanged(_type: string, _active: boolean): void
  • helper function that will be called upon a listener has changed

    Parameters

    • _type: string

      event type

    • _active: boolean

      registered or de registered

    Returns void

  • mappingSample(col: Column): ISequence<number> | Promise<ISequence<number>>
  • on(type: string | string[], listener: IEventListener): IDataProvider
  • removeRanking(ranking: Ranking): void
  • searchAndJump(search: string | RegExp, col: Column): void
  • selectAllOf(ranking: Ranking): void
  • setShowTopN(value: number): void
  • setTopNAggregated(ranking: Ranking, group: IGroup, value: number): void
  • takeSnapshot(col: Column): void
  • toggleSelection(i: number, additional?: boolean): boolean
  • unforward(from: IEventHandler, ...types: string[]): void
  • removes the forwarding declarations

    Parameters

    • from: IEventHandler

      the originated dispatcher

    • Rest ...types: string[]

      event types to forward

    Returns void