Interface WillCreateWidgetEvent

Representation of a willCreateWidgetEvent.

interface WillCreateWidgetEvent {
    factoryId: string;
    token: CancellationToken;
    widget: Widget;
    waitUntil(thenable): void;
}

Hierarchy (view full)

Properties

Methods

Properties

factoryId: string

The widget factory id.

A cancellation token.

widget: Widget

The widget which will be created.

Methods

  • Allows to pause the event loop until the provided thenable resolved.

    Note: It can only be called during event dispatch and not in an asynchronous manner

    Parameters

    • thenable: Promise<any>

      A thenable that delays execution.

    Returns void