Class DataSource<T>

grid data source

cheetahGrid.data.DataSource

cheetahGrid.data

Type Parameters

  • T

Hierarchy (view full)

Implements

Constructors

Properties

EMPTY: DataSource<any> = ...

Accessors

  • get source(): any
  • Returns any

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

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

Methods

  • Parameters

    Returns void

  • 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

  • Parameters

    • type: string

    Returns boolean

  • Adds an event listener.

    Parameters

    • type: string

      The event type id.

    • listener: AnyFunction

      Callback method.

    Returns number

    unique id for the listener.

  • Parameters

    Returns void

  • 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