Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VirtualArray<T>

Type parameters

  • T

Hierarchy

Index

Constructors

constructor

Properties

Private _isViewBase

_isViewBase: boolean

length

length: number

loadSize

loadSize: number

Static changeEvent

changeEvent: string

Static itemsLoadingEvent

itemsLoadingEvent: string

Static propertyChangeEvent

propertyChangeEvent: string

Methods

Private _createPropertyChangeData

Private _emit

  • _emit(eventNames: string): any
  • Parameters

    • eventNames: string

    Returns any

addEventListener

  • addEventListener(eventNames: string, callback: function, thisArg?: any): any
  • Parameters

    • eventNames: string
    • callback: function
    • Optional thisArg: any

    Returns any

get

  • get(name: string): any
  • Parameters

    • name: string

    Returns any

getItem

  • getItem(index: number): T
  • Parameters

    • index: number

    Returns T

hasListeners

  • hasListeners(eventName: string): boolean
  • Parameters

    • eventName: string

    Returns boolean

load

  • load(index: number, items: T[]): void
  • Parameters

    • index: number
    • items: T[]

    Returns void

notify

  • notify<T>(data: T): void
  • Type parameters

    Parameters

    • data: T

    Returns void

notifyPropertyChange

  • notifyPropertyChange(propertyName: string, value: any, oldValue?: any): void
  • Parameters

    • propertyName: string
    • value: any
    • Optional oldValue: any

    Returns void

off

  • off(eventNames: string, callback?: any, thisArg?: any): any
  • Parameters

    • eventNames: string
    • Optional callback: any
    • Optional thisArg: any

    Returns any

on

  • on(eventNames: string, callback: function, thisArg?: any): any
  • on(event: "itemsLoading", callback: function, thisArg?: any): any
  • on(event: "change", callback: function, thisArg?: any): any
  • Parameters

    • eventNames: string
    • callback: function
    • Optional thisArg: any

    Returns any

  • Parameters

    • event: "itemsLoading"
    • callback: function
    • Optional thisArg: any

    Returns any

  • Parameters

    • event: "change"
    • callback: function
    • Optional thisArg: any

    Returns any

once

  • once(event: string, callback: function, thisArg?: any): any
  • Parameters

    • event: string
    • callback: function
    • Optional thisArg: any

    Returns any

removeEventListener

  • removeEventListener(eventNames: string, callback?: any, thisArg?: any): any
  • Parameters

    • eventNames: string
    • Optional callback: any
    • Optional thisArg: any

    Returns any

set

  • set(name: string, value: any): void
  • Parameters

    • name: string
    • value: any

    Returns void

setItem

  • setItem(index: number, value: T): void
  • Parameters

    • index: number
    • value: T

    Returns void

setProperty

  • setProperty(name: string, value: any): void
  • Parameters

    • name: string
    • value: any

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method