Include default JavaScript

Defines if the Javascript functions that generate the menu are included. In case that it is stablished as Not, the menu will not be generated and only the data will be stored in a variable with structure JSON.

Disables the default javascript can be useful if you want to give another appearance to the menu using Javascript code that can be included in the "Javascript template", for example, the following code uses the functions of the library YUI included in Moodle, to generate a simple menu bar:

var menu_ppal_topics = new YAHOO.widget.MenuBar("id_contenedor_menu");
menu_ppal_topics.addItems(tree_menu_var);
menu_ppal_topics.render();

Notes: