Class FilterDataSource<T>

grid data source for filter

cheetahGrid.data.FilterDataSource

cheetahGrid.data

Type Parameters

  • T

Hierarchy (view full)

Constructors

Properties

EMPTY: DataSource<any> = ...

Accessors

  • get filter(): null | Filter<T>
  • Returns null | Filter<T>

  • set filter(filter): void
  • Parameters

    • filter: null | Filter<T>

    Returns void

  • get length(): number
  • Returns number

  • set length(length): void
  • Parameters

    • length: number

    Returns void

  • 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

  • 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