adgsm / multi-level-push-menu

MultiLevelPushMenu jQuery Plugin implementation
http://multi-level-push-menu.dzunic.net
804 stars 213 forks source link

'additems' into root menu level 0 #148

Closed vitalijm closed 8 years ago

vitalijm commented 8 years ago

Is it possible to add some new [items|menus] to the top root level of our menu by using 'additems'? Or some other js method.

adgsm commented 8 years ago

You can instantiate as much menus as you like in the same page. Add menu items is possible at any level.

vitalijm commented 8 years ago

Can you bring here example of code, how to add menu or item at the most top level of our main menu?

adgsm commented 8 years ago

Same as http://multi-level-push-menu.make.rs/#exampleaddremove, just specify in $addTo div menu instance of a menu you would like to populate...

adgsm commented 8 years ago

in case of example you can find root level with

$( 'div[data-level="0"]' )
vitalijm commented 8 years ago

Ok, thanks I will try it. So I think You can close it.

vitalijm commented 8 years ago

Big Thanks