Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ViewBase

The ViewBase class is the most basic base class for views in Orange. It contains the basics needed for creating a view and connecting it to a view template and a view model. No declarative bindings are available for use in the template, everything has to be set up in the view class.

Hierarchy

Index

Constructors

constructor

  • new ViewBase(templateName: string): ViewBase
  • new ViewBase(templateName: string, context: any): ViewBase

Properties

Private _dataContext

_dataContext: any = null

Accessors

dataContext

  • get dataContext(): any
  • set dataContext(context: any): void

element

  • get element(): HTMLElement
  • set element(element: HTMLElement): void

id

isTemplateApplied

  • get isTemplateApplied(): boolean

Methods

addDisposable

  • addDisposable(disposable: object): void

addPropertyChangedListener

  • addPropertyChangedListener(listener: function): void

Protected applyBindings

  • applyBindings(): void

Protected applyTemplate

  • applyTemplate(doneCallback: function): void

dispose

  • dispose(): void

getControl

  • getControl<T>(selector: string): T
  • Type parameters

    • T

    Parameters

    • selector: string

    Returns T

Protected onApplyBindings

  • onApplyBindings(): void

Protected onApplyTemplate

  • onApplyTemplate(): void

Protected onControlCreated

  • onControlCreated(): void

Protected onElementSet

  • onElementSet(): void

Protected onPropertyChanged

  • onPropertyChanged(propertyName: string, value: any): void

Protected raisePropertyChanged

  • raisePropertyChanged(property: string): void
  • raisePropertyChanged<T>(property: function): void

removePropertyChangedListener

  • removePropertyChangedListener(listener: function): void

Generated using TypeDoc