net.liftmodules.FoBoTB.snippet.FoBo
This function register a load event factory script
This function register a load event factory script
Example
<head> : <script data-lift="FoBo.Bootstrap.activateDropdown?on=.dropdown-toggle"></script> <script data-lift="FoBo.ScriptHelper.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>
Script Helper Snippet Bootstrap v2.x
This snippet class contains functions for common transform operations useful when working with the any toolkit. Example Most of the functions in this class can be invoked using the following pattern.
data-lift="FoBo.ScriptHelper.functionName?paramName=paramValue&...."
For more examples see the individual transform functions.