This function register a load event factory script
This function register a load event factory script
Example
<head> : <script data-lift="FoBo.Bs3Comp.activateDropdown?on=.dropdown-toggle"></script> <script data-lift="FoBo.Bs3ScriptHelper.registerLoadEventFactory"></script> </head>
This load event factory script has to be registered ones before any activation can be loaded.
Result: This example snippet invocation will result in the following script:
<script type="text/javascript">// drop down activation that uses the load factory <script type="text/javascript"> // function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } // ]]> </script>
Lift 3 alternativ -- This function creates a register load event factory function and appends it to lift's page-script global space.
Lift 3 alternativ -- This function creates a register load event factory function and appends it to lift's page-script global space.
v1.4
Script Helper Snippet Bootstrap v3.x
This snippet class contains functions for common transform operations useful when working with the any toolkit, for convenience included as a Bootstrap v3.x snippet. Example Most of the functions in this class can be invoked using the following pattern.
data-lift="FoBo.Bs3ScriptHelper.functionName?paramName=paramValue&...."
For more examples see the individual transform functions.
v1.1