I have a requirement where i dont want to display "Title" in the Modal Dialog. If i pass an empty string to the title, the modal dialog displays the title as "Dialog" .I dont want anything to display as the Title.
Any idea on how it can be acieved?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityPut empty white space in title
. Example:
var options =
{
title: ' ',
url: '/_layouts/15/NY.ExportVersionHistory/ExportVersionHistory.aspx',
height: 400,
width: 300
}
SP.UI.ModalDialog.showModalDialog(options);
UPDATE
Having empty space in title should not result in any title being displayed in popup. Check the screenshot.
One way to achieve this is by hiding the Title bar using CSS
<style type="text/css">
body div.ms-dlgBorder div.ms-dlgTitle
{
display:none;
}
</style>