🧠Navigation Link
The Navigation Link feature in AppStruct provides an easy and efficient way to link different screens or external URLs, enabling users to navigate seamlessly within your app.
Adding a Navigation Link to a Component​
- Click on the component (e.g., button, image) to which you want to add a navigation link.
- Once the component is selected, the Component Settings will appear, displaying configuration options for the component.
- Under the Click Actions section in the Component Settings, click on "Add Action" to open the list of available actions.
- From the list of available actions, click on "Navigation Link". This will add a new node labeled Navigation Link under Click Actions.
Link Types​
Option 1: Redirect Inside App (Internal Navigation)​
- Under Navigation Link, use the dropdown menu to choose "Redirect inside app".
- A new dropdown labeled Screen will appear.
- Select the target screen from the list of available screens in your project where you want to redirect the user.
- Example: If you want users to go to the "Profile" screen after clicking the button, choose "Profile" from the dropdown.
- After configuring the link, click the "Save" button to save settings.
Option 2: HTTP Link (External URL)​
- Under Navigation Link, choose "HTTP link" from the dropdown menu.
- A new text field labeled URL will appear.
- Enter the full URL of the external website where you want to redirect users (e.g., https://example.com).
- After configuring the link, click the "Save" button to save settings.
Saving and Testing Your Navigation Link​
- Click on the "Preview" button located in the Up Toolbar to enter the preview mode of your app.
- In preview mode, interact with the component to which you added the Navigation Link.
- Confirm that the navigation occurs as expected. For internal links, verify that the correct screen is displayed. For external links, ensure the URL opens correctly.
Best Practices​
To ensure a smooth experience when using the Navigation Link feature, follow these best practices:
- Provide User Feedback:
- Use indicators such as animations or text changes to inform users when they click on a component that performs navigation.
- Test Navigation Thoroughly:
- Ensure all links are configured correctly and lead to the expected screens or URLs. Broken links can lead to a poor user experience.
- Use Descriptive Names for Screens:
- Naming screens descriptively (e.g., "User Profile", "Settings") will make it easier to identify them when setting up internal navigation links.
- Avoid Overloading Components with Actions:
- While AppStruct allows adding multiple actions to a component, avoid overloading a single component with too many actions, as it may confuse users.
Need Assistance?​
If you encounter any challenges or require further guidance while building your app, please refer to the Documentation or, contact our support team at [email protected].