Preparing search index...

    Event triggered when a window or dialog closes.

        // CloseEvent is delivered via Widget.onClose when a window or dialog
    // is about to close. Use accept() to allow closing or ignore() to prevent it.
    const gui = this.pluginSystem.findInterface(IGui.interfaceId) as IGui;
    const dialog = gui.createDialog();
    dialog.windowTitle = 'CloseEvent Demo';
    dialog.resize(300, 100);

    this.connections.push(
    dialog.onClose.connect((event: CloseEvent) => {
    // Prevent the first close attempt
    event.ignore();
    console.log('Close rejected via CloseEvent.ignore()');
    })
    );

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Returns the name of this object's type.

      Returns string

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object refers to the same instance as the given object.

      Parameters

      Returns boolean