Parameters:
String
options.html Optional
We can directly provide the HTML code as a string
String
options.width Optional
String
options.height Optional
Boolean
options.closePrevious Optional, Default: false
It permits to close a previous modal dialog before opening this one
Boolean
options.wait Optional, Default: false
If we want to show a Wait Screen (alias for $SP().waitModalDialog())
String
options.id Optional, Default: random()
An unique ID to identify the modal dialog (don't use space or special characters)
Function
options.callback Optional
A shortcut to `dialogReturnValueCallback` with dialogResult and returnValue
Function
options.onload Optional
The modal might be delayed as we need to load some Sharepoint JS files; the `onload` function is called once the modal is shown
Function
options.onurlload Optional
When we use the "url" parameter, this is triggered when the DOMContent of the iframe is loaded (if it's the same origin)
String
options.title Optional
The title to give to the modal (if you use `wait:true` then it will be the main text that will appear on 2013, and the modal title for 2010)
String
options.message Optional
This parameter is only use if there is `wait:true` and permits to define the subtitle message for 2013, or the main message for 2010
String
options.url Optional
A string that contains the URL of the page that appears in the dialog. If both url and html are specified, url takes precedence. Either url or html must be specified.
Number
options.x Optional
An integer value that specifies the x-offset of the dialog. This value works like the CSS left value.
Number
options.y Optional
An integer value that specifies the y-offset of the dialog. This value works like the CSS top value.
Boolean
options.allowMaximize Optional
A Boolean value that specifies whether the dialog can be maximized. true if the Maximize button is shown; otherwise, false.
Boolean
options.showMaximized Optional
A Boolean value that specifies whether the dialog opens in a maximized state. true the dialog opens maximized. Otherwise, the dialog is opened at the requested sized if specified; otherwise, the default size, if specified; otherwise, the autosized size.
Boolean
options.showClose Optional, Default: true
A Boolean value that specifies whether the Close button appears on the dialog.
Boolean
options.autoSize Optional
A Boolean value that specifies whether the dialog platform handles dialog sizing.