Class CachedDataSource<T>

grid data source for caching Promise data

cheetahGrid.data.CachedDataSource

cheetahGrid.data

Type Parameters

  • T

Hierarchy (view full)

Constructors

Properties

EMPTY: DataSource<any> = ...

Accessors

  • get length(): number
  • Returns number

  • set length(length): void
  • Parameters

    • length: number

    Returns void

  • get source(): any
  • Returns any

  • get EVENT_TYPE(): {
        UPDATE_LENGTH: "update_length";
        UPDATED_LENGTH: "updated_length";
        UPDATED_ORDER: "updated_order";
    }
  • Returns {
        UPDATE_LENGTH: "update_length";
        UPDATED_LENGTH: "updated_length";
        UPDATED_ORDER: "updated_order";
    }

    • ReadonlyUPDATE_LENGTH: "update_length"
    • ReadonlyUPDATED_LENGTH: "updated_length"
    • ReadonlyUPDATED_ORDER: "updated_order"

Methods

  • Returns void

  • Fires all registered listeners

    Parameters

    • type: string

      The type of the listeners to fire.

    • Rest...args: any[]

      fire arguments

    Returns any

    the result of the last listener

  • Adds an event listener.

    Parameters

    • type: string

      The event type id.

    • listener: AnyFunction

      Callback method.

    Returns number

    unique id for the listener.

  • Removes an event listener which was added with listen() by the id returned by listen().

    Parameters

    • id: number

      the id returned by listen().

    Returns void