JSHelperOpenLightbox Method |
Generate javascript to open a lightbox window (currently using jQuery Colorbox by Jack Moore) to present the specified URL.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string OpenLightbox(
IAppContext cxt,
string url,
bool modal,
string closeHtml
)
Public Shared Function OpenLightbox (
cxt As IAppContext,
url As String,
modal As Boolean,
closeHtml As String
) As String
Parameters
- cxt
- Type: NetQuarryIAppContext
The application context. - url
- Type: SystemString
The URL to host. - modal
- Type: SystemBoolean
Specifies whether or not the lightbox should be presented modally. - closeHtml
- Type: SystemString
Optional HTML to be presented as the lightbox Close button. If omitted, a default will be provided.
Return Value
Type:
StringThe javascript for opening up a lightbox.
See Also