Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ModelView

A view backed by a model provided by an extension. This model contains enough information to lay out the view

Hierarchy

  • ModelView

Index

Properties

Readonly connection

connection: Connection

The connection info for the dashboard the webview exists on

Readonly modelBuilder

modelBuilder: ModelBuilder

The model backing the model-based view

Readonly onClosed

onClosed: Event<any>

Raised when the view closed.

Readonly onValidityChanged

onValidityChanged: Event<boolean>

Raised when the model view's valid property changes

Readonly serverInfo

serverInfo: ServerInfo

The info on the server for the dashboard

Readonly valid

valid: boolean

Whether or not the model view's root component is valid

Methods

initializeModel

  • initializeModel<T>(root: T): Thenable<void>
  • Initializes the model with a root component definition. Once this has been done, the components will be laid out in the UI and can be accessed and altered as needed.

    Type parameters

    Parameters

    • root: T

    Returns Thenable<void>

validate

  • validate(): Thenable<boolean>
  • Run the model view root component's validations

    Returns Thenable<boolean>

Generated using TypeDoc