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');

Register

You will be emailed a link to set your password.

Login

Lost password?