@param: {Boolean} state :: TRUE will SET / FALSE will UNSET
@param: {String} yURL the Refresh URL that will execute on destruct of the Modal Box
Set/Unset the Refresh Parent State/URL for Smart Modal Box
public staticsetHandlerOnBeforeUnload = (
{Function}fx
) => {} . {Boolean}
@return: {Boolean} If fx is function and set, will return TRUE else FALSE
@param: {Function} fx :: if type FUNCTION, will set the iFBoxBeforeUnload handler else will log an error
Set Per-Instance Before Unload custom Handler: ()=>{} // return true or false; }
@param: {String} yURL :: the URL to be loaded ; must differ from the URL loaded in parent !
@param: {Boolean} yProtect :: default is NULL ; if TRUE will protect closing Modal Box by Escape or click outside and can be closed only by close button
@param: {Integer} windowWidth :: the width of the Modal Box
@param: {Integer} windowHeight :: the height of the Modal Box
Make the Smart Modal Box to Load a new URL ; after load will show
public staticfunctionUnloadURL (
) {} . {Void}
Make the Smart Modal Box to Unload the URL ; after unload will hide
class Properties
public staticletparam_UseProtection = false ; .{Boolean}
set[before] smartJ$Options .ModalBox.UseProtection ; [after] can be changed by setting the 2nd param of the LoadURL() method to TRUE or FALSE, will persist
getN/A
Use Protection used to allow (when TRUE) the click on overlay to close the modal
class Constants
public staticconstparam_LoaderImg = 'lib/js/framework/img/loading.svg' ; .{String}
set[before] smartJ$Options .ModalBox.LoaderImg
getN/A
Loader Image used to display when loading ...
public staticconstparam_CloseImg = 'lib/js/framework/img/close.svg' ; .{String}
set[before] smartJ$Options .ModalBox.CloseImg
getN/A
Close Button Image
public staticconstparam_CloseAlign = 'right' ; .{String}
set[before] smartJ$Options .ModalBox.CloseAlign
getN/A
Close Button Horizontal Align Mode :: 'left' or 'right'
public staticconstparam_vAlign = 'top' ; .{String}
set[before] smartJ$Options .ModalBox.vAlign
getN/A
Close Box Vertical Align Mode :: 'top' or 'middle' / 'center'
public staticconstparam_CssOverlayBgColor = '#333333' ; .{String}
a Modal iFrame component for JavaScript / jQuery