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

addEventListener

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

get

  • get(name: string): any

getItem

  • getItem(index: number): T

hasListeners

  • hasListeners(eventName: string): boolean

load

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

notify

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

notifyPropertyChange

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

off

  • off(eventNames: string, callback?: any, thisArg?: any): 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

once

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

removeEventListener

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

set

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

setItem

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

setProperty

  • setProperty(name: string, value: any): 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