metismenu icon indicating copy to clipboard operation
metismenu copied to clipboard

Is it possible to add link and collapse/expand behavior to menu item?

Open skornev opened this issue 9 years ago • 3 comments

Hi,

Here http://demo.onokumus.com/metisMenu/ If you click on item "Menu 1.3" it expands or collapse children items. Is it possible to implement that if I click on text "Menu 1.3" it will navigate to "menu13.html", but if I click on plus sign on the right corner it will just expands or collapse children items.

Thank you

skornev avatar Jul 10 '15 17:07 skornev

@skornev Not possible.

onokumus avatar Jul 11 '15 08:07 onokumus

is it possible to click on the menu 1.3 and it navigates me aswell as collapse the children item once the page is loaded

nnyamekye avatar Mar 03 '16 11:03 nnyamekye

Yes, it is possible. On many sites the parent item also represent a URL. I've tried to test it as a concept. But I am a designer, and not a strong javascript- / jQuery coder. I am sure onokumus would have found a much more elegant approach.

Test 1: http://codepen.io/eye-wonder/full/oYPeYO/ Test 2 (sub item count): http://codepen.io/eye-wonder/full/gLddOY/

Another test - v2.6.0 with small edits: http://codepen.io/eye-wonder/pen/vyVOzZ (setting a custom class "t" on toggle buttons)

eye-too avatar Dec 13 '16 09:12 eye-too