Anvil apps are split into Forms. You can include one Form inside another, and use Links to switch between them.
Our Material Design theme has a sidebar for navigation. Drop Links into it and configure their
click handlers to add an instance of the desired Form to the main Form’s
from Page1 import Page1 # ... def link_1_click(self, **event_args): """This method is called when the link is clicked""" self.content_panel.clear() self.content_panel.add_component(Page1())
This is an example app showing navigation between pages using the sidebar.
Here is a video tutorial showing step-by-step how to set up navigation Links.
For detailed information, see the Navigation section of the reference docs.
If you have a particular style of navigation in mind, for example a tabbed browsing experience, you can modify the template HTML of your theme to create any look and feel you like. The basic principle of using Links to navigate between Forms still applies, but you’ll put the slots in a different place. See Themes in the reference docs for more information.
We will create a custom Theme for you if you are a Business Plan customer. Contact us at email@example.com to discuss further.