Skip to Content

Prevent routing on sap.tnt.NavigationListItem select?

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 25, 2016 at 12:32 AM

    Hi Oliver,

    Will this sample help? Plunker

    Regards,

    Sai.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 29, 2016 at 01:51 PM

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

    Add comment
    10|10000 characters needed characters exceeded