Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

app

app: App

movies

movies: IMovie[] = [{ label: "First", category: "None" },{ label: "True Lies", category: "Action" },{ label: "Jurassic Park", category: "Adventure" },{ label: "Big", category: "Kids" },{ label: "Inception", category: "Suspense" },{ label: "Last", category: "None" },]

postInit

postInit: Function[]

selectedMovie

selectedMovie: IMovie

Accessors

errorSelectedMovie

  • get errorSelectedMovie(): string

errors

  • get errors(): Array<object>

isReady

  • get isReady(): boolean

isValid

  • get isValid(): boolean

parent

  • Returns parent AtomViewModel if it was initialized with one. This property is also useful when you open an popup or window. Whenever a popup/window is opened, ViewModel associated with the UI element that opened this popup/window becomes parent of ViewModel of popup/window.

    Returns AtomViewModel

  • Returns parent AtomViewModel if it was initialized with one. This property is also useful when you open an popup or window. Whenever a popup/window is opened, ViewModel associated with the UI element that opened this popup/window becomes parent of ViewModel of popup/window.

    Parameters

    Returns void

Methods

dispose

  • dispose(): void

init

  • init(): Promise<any>

onDelete

  • onDelete(data: IMovie): Promise<any>

onItemClick

  • onItemClick(data: IMovie): void

Protected onPropertyChanged

  • onPropertyChanged(name: string): void

Protected onReady

  • onReady(): void

refresh

  • refresh(name: string): void

Protected registerDisposable

resetValidations

  • resetValidations(resetChildren?: boolean): void

runAfterInit

  • runAfterInit(f: function): void

Protected setupWatch

  • setupWatch(ft: string[][] | function, proxy?: function, forValidation?: boolean, name?: string): IDisposable
  • Execute given expression whenever any bindable expression changes in the expression.

    For correct generic type resolution, target must always be this.

     this.setupWatch(() => {
         if(!this.data.fullName){
             this.data.fullName = `${this.data.firstName} ${this.data.lastName}`;
         }
     });
    template

    T

    memberof

    AtomViewModel

    Parameters

    • ft: string[][] | function
    • Optional proxy: function
        • (...v: any[]): void
        • Parameters

          • Rest ...v: any[]

          Returns void

    • Optional forValidation: boolean
    • Optional name: string

    Returns IDisposable

Generated using TypeDoc