Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

VSTS modal dialog close event #21

@javeriaanwer

Description

@javeriaanwer

Hi,

I am using microsoft VSTS modal dialog and I want a confirmation message when modal dialog is closed from 'x' (closed button of modal dialog), I get close event which fired after event dialog is closed.

I want an event before closing the dialog. How can I do that?

here is the code:

VSS.getService(VSS.ServiceIds.Dialog).then(function(dialogService) 
{ 
       var contributionId = //id 
       var dialogOptions = { title: "ABC", close: onDialogCloseByCrossButtonClick }; 
       dialogService.openDialog(contributionId, dialogOptions).then(
               function (dialog) {
                    // do something
        });
}

like its appearing in TFS WorkItem window.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions