Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Can't change dialog title in showModalDialog function?

$
0
0

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



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>