Skip to content

Hide and show menu items #499

Answered by davetcc
nickloris asked this question in Q&A
Discussion options

You must be logged in to vote

Hi sorry for the delay in answering, we've been a bit busy in a rather large migration project (see other new discussion).

Whenever you do either make an item visible or hidden, or you otherwise materially change the layout of items you need to reset the menu as follows:

  1. tell everyone the menu structure has changed

    menuMgr.notifyStructureChanged();

  2. you may need to make the menu completely recalculate as well.

    menuMgr.resetMenu(true);

Thanks,
Dave.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nickloris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants