JSHelperOpenBootModal Method (IAppContext, String, BootModalOptions, String) |
Generate javascript to open a modal dialog to present the specified URL.
If a non-blank CSS class name is provided the class will be added to the dialog outer container and
a CSS class will be added to the body contained in the dialog's IFRAME with a "-body" suffix (e.g.
if the CSS class name is "my-dialog" then "my-dialog-body" will be added to the contained body). A
class is applied to the contained body because it is contained in an IFRAME and you cannot apply CSS
across IFRAME elements.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string OpenBootModal(
IAppContext cxt,
string url,
BootModalOptions options,
string cssClass
)
Public Shared Function OpenBootModal (
cxt As IAppContext,
url As String,
options As BootModalOptions,
cssClass As String
) As String
Parameters
- cxt
- Type: NetQuarryIAppContext
The application context. - url
- Type: SystemString
The URL to host. - options
- Type: NetQuarryBootModalOptions
Options for modal dialog behaviour. - cssClass
- Type: SystemString
A CSS class name to apply to the dialog.
Return Value
Type:
StringThe javascript for opening up a modal dialog.
See Also