I created a test app with start.vaadin.com and used the AppLayout with a couple of views. The generated code creates a SideNav which is filled with MenuEntries which are automatically created from all views with @Menu annotation.
I want some of the menu entries to be invisible (and the views not be reachable) initially. Only after some user action (e. g. perform a search) the other menu entries shall become visible.
Is there a way to make this somehow generic, e. g. let the MenuEntry check for a property/lambda expression/etc. if it should be visible? Or do I have to explicitly put that in code?