Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface JsViewExt<T>

Type parameters

  • T

Hierarchy

  • EventEmitter
    • JsViewExt

Index

Methods

addListener

  • addListener(event: string | symbol, listener: (...args: any[]) => void): JsViewExt<T>
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns JsViewExt<T>

attr

  • attr(attrName: string): undefined | null | string
  • attr(attrName: string, value: null | string): void
  • Parameters

    • attrName: string

    Returns undefined | null | string

  • Parameters

    • attrName: string
    • value: null | string

    Returns void

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

eventNames

  • eventNames(): (string | symbol)[]
  • Returns (string | symbol)[]

findView

  • findView<T>(id: string): null | JsView<T>
  • Type parameters

    • T: View<T>

    Parameters

    • id: string

    Returns null | JsView<T>

getMaxListeners

  • getMaxListeners(): number
  • Returns number

listenerCount

  • listenerCount(event: string | symbol): number
  • Parameters

    • event: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

off

  • off(event: string | symbol, listener: (...args: any[]) => void): JsViewExt<T>
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns JsViewExt<T>

on

  • on(event: string | symbol, listener: (...args: any[]) => void): JsViewExt<T>
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns JsViewExt<T>

once

  • once(event: string | symbol, listener: (...args: any[]) => void): JsViewExt<T>
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns JsViewExt<T>

prependListener

  • prependListener(event: string | symbol, listener: (...args: any[]) => void): JsViewExt<T>
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns JsViewExt<T>

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): JsViewExt<T>
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns JsViewExt<T>

rawListeners

  • rawListeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

removeAllListeners

  • removeAllListeners(event?: string | symbol): JsViewExt<T>
  • Parameters

    • Optional event: string | symbol

    Returns JsViewExt<T>

removeListener

  • removeListener(event: string | symbol, listener: (...args: any[]) => void): JsViewExt<T>
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns JsViewExt<T>

setMaxListeners

  • Parameters

    • n: number

    Returns JsViewExt<T>