Skip to main content

show

show(dialogParams: DialogParameters): void

Parameters

NameTypeDescription
dialogParamsDialogParametersDialog parameters

Description

Opens message box with specified parameters.

Example

NetDecor.v3.dialog.show({
flags: "YesNoCancel",
title: {
pl: "Niezapisany projekt"
},
message: { pl: "Czy chcesz zapisać zmiany?" },
onresult: function (result) {
if (result == "Yes") {
console.log(NetDecor.v3.project.getCurrentProject());
openProject();
}
if (result == "No") {
openProject();
}
}
})

Result:

example dialog