Navigation Components
Transcript Summary
Introduction
Hello Tadabasers, Sam here. In this video, we’re going to talk all about the navigation components in Tadabase.
We will cover:
Adding a Menu
When you are creating your app layout, you may want to add a navigation system at the top of your page to help users navigate to other pages. This is where the menu component comes in.
- Open your components.
- Go to your system components and choose the menu option from the dropdown.
- Add a column and place your menu there.
Let’s preview a page to see how the menu looks.
Example of Menu in Layout
In many cases, it's best to place the menu at the layout level, so it appears across all pages using that layout. For instance, if a student logs in, they might see a student menu at the top, while an instructor would see a different menu on their layout.
Let’s preview the page. At the top, we see the menu, including links to the course catalog, course enrollment, and more. You can also include a logo and links to other pages.
Adding Items to the Menu
Let’s go back to the menu setup and explore the different options:
- Page: This allows you to link to a specific page. Name it appropriately, so users know where they’re navigating.
- Link: You can add an external link, such as Google.
- Custom: Allows you to insert custom HTML.
- Image: Often used for logos.
- User: Links like login, sign up, profile, or logout.
You can also choose the alignment of menu items (left or right) and add sub-items under each menu option.
User Menu
You can configure it to:
- Show registration links.
- Display the user's profile image.
- Display the login page in a pop-up or modal.
Let’s preview the page. At the top, we see the user menu with login and signup options. When clicking "Login," it opens as a pop-up, allowing users to log in without leaving the page.
Once logged in, the user will see options for "Profile" and "Logout." The profile page will display details like name, email, and an option to upload or change their profile image.
Logout Redirect Rules
You can set up redirect rules for when a user logs out. For instance, you can redirect them to the login page after logging out. These rules can be set for all users or by role (e.g., customers or admins being redirected to different pages).
Breadcrumb Component
Let’s preview the breadcrumb functionality:
- We start on the sample page.
- Clicking "Details" adds another breadcrumb, showing the trail of navigation.
This makes it easier for users to navigate back to higher-level pages.
Link Button
For example, we added a link button at the bottom of the page that takes users to the sample page. This button can be placed in various parts of your app to facilitate navigation.
Conclusion
In this video, we covered the following navigation components:
Thank you for watching, and have a great day!
We'd love to hear your feedback.