Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

Reply To: Dynamic Menu Population Not Supported

Home Forums Older releases 1.0.x + Bootstrap addon Dynamic Menu Population Not Supported Reply To: Dynamic Menu Population Not Supported

#2876
schellem
Participant

I am unable to get either of these to work. Here is how I am populating my BootStrap menu via JsRender


var liHtml = $("#menuTemplateBS").render(menuSections);
      $(jqMenuId).empty().append('<ul id="bsMenu" class="nav navbar-nav">' + liHtml + '</ul');

I’ve tried both your suggestions after the above and even from console manually well after the page is displayed.

$.SmartMenus.Bootstrap.init(); 

Says Bootstrap is undefined and refresh doesn’t error but doesn’t seem to do anything

$('#bsMenu').smartmenus('refresh');