I’ve put together a navigation module that builds a menu from a simple dict of options.
Features:
- The menu links and associated forms can use either classic or hash based routing
- A menu item can be hidden and reinstated using ordinary Anvil events
Here’s the app itself:
https://anvil.works/build#clone:2QN4JZNDCSWSXITS=PXZDGQRC56RJGDJ7E5PVWDLM
And here’s a demo of how it works which includes both types of routing:
https://anvil.works/build#clone:5V6PL5HAJQNWN6KV=XAX4Z3KVXOVQZKNDUA4X5LE4