Collapsible Menus Sample 3

As you may have noticed this sample appeard with some of its menu items expanded.
This is because we called a function provided by the AddIn to expand menu items programatically.

Here's the code we used to expand the "Utilities" and "DHTML Menu Builder" menus:

<script language="javascript">
ExpandMenu("Utilities");
ExpandMenu("DHTML Menu Builder");
</script>

As you can see is simply a matter of calling the ExpandMenu() function and pass it, as a parameter, the name of the menu that you want to expand.

Special Considerations
  1. Avoid using the "max" setting of the "Code Optimization" parameter when using this function. Otherwise, the function will fail to work.
  2. Always put your function call(s) at the bottom of the page, preferably, right before the closing </body> tag