show
show(dialogParams: DialogParameters): void
Parameters
Name | Type | Description |
---|---|---|
dialogParams | DialogParameters | Dialog 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: