Class MVCArray

MVC

Hierarchy

Index

Constructor methods

Methods

Constructor methods

constructor(array?: Array<any>): MVCArray

Parameters

  • array?: Array<any> optional

Returns

MVCArray

Methods

public addListener(eventName: string, handler: (...args: any[]) => void): MapsEventListener

Parameters

  • eventName: string
  • handler: (...args: any[]) => void

Returns

MapsEventListener

public bindTo(key: string, target: MVCObject, targetKey?: string, noNotify?: boolean)

Parameters

  • key: string
  • target: MVCObject
  • targetKey?: string optional
  • noNotify?: boolean optional

public changed(key: string)

Parameters

  • key: string

public clear()

public forEach(callback: (elem: any, index: number) => void)

Parameters

  • callback: (elem: any, index: number) => void

public get(key: string): any

Parameters

  • key: string

Returns

any

public getArray(): Array<any>

Returns

Array<any>

public getAt(i: number): any

Parameters

  • i: number

Returns

any

public getLength(): number

Returns

number

public insertAt(i: number, elem: any)

Parameters

  • i: number
  • elem: any

public notify(key: string)

Parameters

  • key: string

public pop()

public push(elem: any): number

Parameters

  • elem: any

Returns

number

public removeAt(i: number): any

Parameters

  • i: number

Returns

any

public set(key: string, value: any)

Parameters

  • key: string
  • value: any

public setAt(i: number, elem: any)

Parameters

  • i: number
  • elem: any

public setValues(values: any)

Parameters

  • values: any

public unbind(key: string)

Parameters

  • key: string

public unbindAll()