# dhtmlxmenu:api_method_dhtmlxmenuobject_enabledynamicloading [DHX documentation]

DHTMLX Docs & Samples Explorer

Index
dhtmlxmenu
API Methods

### enableDynamicLoading(url, icon)

Required library edition:
Required library file: dhtmlxmenu_ext.js

enables dynamic loading of sublevels

- url - server-side script, transmitted params are action=loadMenu and parentId
- icon - true|false, replaces elemet's arrow with loading image while loading

        menu.enableDynamicLoading("server.php", true);