javascript - Metro UI FluentMenu -


i want populate metro ui fluentmenu dropdown (see class="fluent-big-button dropdown-toggle") http://metroui.org.ua/fluent-menu.html via ajax servercall. after inserting received elements dom dropdown doesn't appear, elements correctly located in dom.

i think need additional initialization after loading new elements have no idea how this.

after inspecting library saw, fluentmenu realized jquery-widget (https://learn.jquery.com/jquery-ui/widget-factory/how-to-use-the-widget-factory/) - can "re-initialize" these plugins (the first time seems after page load completion)?

thanks regards, phil

the problem can fixed calling:

$("[data-role=dropdown]").dropdown(); 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -