cancel
Showing results for 
Search instead for 
Did you mean: 

Prevent routing on sap.tnt.NavigationListItem select?

0 Kudos

Hi,

how can I prevent a NavigationListItem from navigating when selected?

I have a mainmenu and this mainmenu has submenuitems. So instead of routing to a page I want the select event on the mainmenuitem to toggle the submenu-items like it does when selecting the arrow on the right. Only the submenuitems should navigate when selected.

Is that possible?

I tried with

item.detachSelect(item.__proto__._selectItem);

but that does not work.

Thanks,

Oliver

Accepted Solutions (1)

Accepted Solutions (1)

saivellanki
Active Contributor
0 Kudos

Hi Oliver,

Will this sample help? Plunker

Regards,

Sai.

0 Kudos

Hi Sai,

yes, exactly what I was looking for.

Thanks a lot.

Oliver

Answers (1)

Answers (1)

0 Kudos

Btw, why are the collapse- and expand-methods not listed in the API reference? How did you know that they exist?