Hierarchy

Constructors

Properties

$el: JQuery<HTMLElement>
_traitNames: string[]
attributes: Record<string, any>
cid: string
className?: string
collection: Collection<any>
displayed: Promise<WidgetView>

A promise that resolves to the parent view when a child view is displayed.

el: HTMLElement
id?: string
options: any
tagName: string

Methods

  • Parameters

    • selector: string

    Returns JQuery<HTMLElement>

  • Parameters

    • tagName: string

    Returns void

  • Returns void

  • Parameters

    • eventName: string
    • callback: EventHandler
    • Optional context: any

    Returns StyleView

  • Parameters

    • eventMap: EventMap
    • Optional context: any

    Returns StyleView

  • Parameters

    • Optional events: _Result<EventsHash>

    Returns StyleView

  • Events hash or a method returning the events hash that maps events/selectors to methods on your View. For assigning events as object hash, do it like this: this.events = { "event:selector": callback, ... }; That works only if you set it in the constructor or the initialize method.

    Returns EventsHash

  • Parameters

    • object: any
    • events: string
    • callback: EventHandler

    Returns StyleView

  • Parameters

    • object: any
    • eventMap: EventMap

    Returns StyleView

  • Parameters

    • object: any
    • events: string
    • callback: EventHandler

    Returns StyleView

  • Parameters

    • object: any
    • eventMap: EventMap

    Returns StyleView

  • Parameters

    • Optional eventName: null | string
    • Optional callback: null | EventHandler
    • Optional context: any

    Returns StyleView

  • Parameters

    • eventName: string
    • callback: EventHandler
    • Optional context: any

    Returns StyleView

  • Parameters

    • eventMap: EventMap
    • Optional context: any

    Returns StyleView

  • Parameters

    • events: string
    • callback: EventHandler
    • Optional context: any

    Returns StyleView

  • Parameters

    • eventMap: EventMap
    • Optional context: any

    Returns StyleView

  • For use with views as ES classes. If you define a preinitialize method, it will be invoked when the view is first created, before any instantiation logic is run.

    See

    https://backbonejs.org/#View-preinitialize

    Parameters

    • Optional options: ViewOptions<WidgetModel, HTMLElement>

    Returns void

  • Send a custom msg associated with this view.

    Parameters

    • content: {}
      • Optional buffers: ArrayBuffer[] | ArrayBufferView[]

      Returns void

    • Parameters

      • element: HTMLElement | JQuery<HTMLElement>

      Returns StyleView

    • Parameters

      • Optional object: any
      • Optional events: string
      • Optional callback: EventHandler

      Returns StyleView

    • Parameters

      • eventName: string
      • Rest ...args: any[]

      Returns StyleView

    • Parameters

      • Optional eventName: string
      • Optional callback: EventHandler
      • Optional context: any

      Returns StyleView

    • Do not use, prefer TypeScript's extend functionality.

      Parameters

      • properties: any
      • Optional classProperties: any

      Returns any

    Generated using TypeDoc