Hi experts,
I created a custom modal dialog using SP.UI.ModalDialog.showModalDialog, using below code.
var
options = {
// define a URL (and yes, you can pass params to that URL) or reference your HTML object, but NOT both!
//url: '../MyPage.aspx?MyParam=' + SomeVar + '&IsDlg=1',
html:
MyHtmlElement,
title:"custom title",
allowMaximize:
false,
showClose:
true,
width:
500,
height:
500
};
// This ensures the supporting JS needed is loaded on the page
SP.SOD.execute('sp.ui.dialog.js','SP.UI.ModalDialog.showModalDialog',
options);
In this dialog, I have a "Check-In" button, now I want to show the SharePoint built-in Check-In dialog (see below figure) when users click this button,
How can I do this?
Thanks,
Michael