@nospamproxy/core
    Preparing search index...

    Class GenericDialogController<TViewModelClass, TModel, TReturn>

    Used to control a generic dialog.

    See GenericDialog for examples.

    Type Parameters

    • TViewModelClass extends Constructable = Constructable
    • TModel = unknown
    • TReturn = unknown
    Index

    Constructors

    Properties

    controller: ICustomElementController
    model: TModel
    result: Promise<GenericDialogResult<TReturn>>

    Accessors

    • get isClosed(): boolean

      Returns boolean

    • get isReady(): boolean

      Returns boolean

    Methods

    • Returns Promise<void>

    • Cancel the dialog.

      Returns void

    • Close the dialog with the specified result.

      This is ignored if the dialog has already been closed.

      Parameters

      Returns void

    • Close the dialog and return the specified value.

      Parameters

      Returns void

    • Internal

      Called by the generic dialog view model when bound.

      If this controller has already been closed, the view model is made inert immediately.

      Parameters

      Returns void