Hi,
Seems the "title" property in the options parameter does not work for showModalDialog() function?
Below is my code to open a modal dialog,
var
MyHtmlElement = document.createElement('div');
MyHtmlElement.innerHTML ="<img></img>";
// Define the Modal's options
var
options = {
html:
MyHtmlElement,
tite:"Change Modal Title",
allowMaximize:
false,
showClose:
true,
width:
500,
height:
500
};
SP.SOD.execute('sp.ui.dialog.js','SP.UI.ModalDialog.showModalDialog',options);
Note that I want to use "Change Modal Title" as the title, but in the modal window, I only see "Dialog", see below screenshot.
How to make it work?
Thanks,
Michael