Links are essential for smooth navigation and user interactions in an app. They help users move between pages, start actions, or reach outside websites.
We’ll explore how to set up links well so they can connect to pages inside the app and to external sites.
For the link element, you can configure the element properties, and style from the element settings.
The Application Builder allows you to bind the text to data sources. This enables the text to update dynamically based on user input or application logic.
To add a link element, access the elements panel and select Link.
Once added, place the link wherever you want it on the page. Don’t worry if it’s not perfectly positioned initially; you can always move it later.
Learn more about how to add and remove an element from a page.
Now, you’ll customize the link’s behavior and appearance by configuring its properties. This includes options for linking to specific actions within the application.
The Application Builder allows you to create links that, when clicked, take users to a designated page within your application.
You can control whether the linked page opens in the same browser tab (replacing the current content) or in a new tab altogether. Choosing the right option depends on your application’s structure and user flow. Here’s a quick guideline:
This feature lets you link to a different page in the application. When you navigate to a page, you’re moving to that place in the application where you can view content or do things.
Navigating to a path is about moving to a specific location within the application, which is identified by its path in the application’s structure.
You need to first add a parameter via :parameter
. Path parameters can be used to load data, depending on the provided parameter dynamically.
The content will be generated automatically on that page depending on which specific detail the user has navigated to the detail page from.
You can also do the same for a link type in the field configuration on a table element.
Navigating to a custom URL means going to a web address that is specifically designed or created for a particular purpose, often outside of the standard paths predefined by the application.
To link to an external website, input the URL into the link field using the following format https://www.example.com
.
You can link to an internal page and set it to open a separate page within your Baserow application. For example, when the user clicks on a button, you want to display the row details.
Map row ID: Ensure the row ID field in the data source configuration is properly mapped. This will be used to identify the specific row when displaying details.
Determine the data source that contains the information you want to show. This should be the same data source that provides the details on the current page, or it could be a different one.
Create a link:
That’s it. Now when the user clicks on a particular button, they will be taken to the page with the specific details.
That’s it. Now when the user clicks on a particular button, they will be taken to the page with the specific details.
A link variant refers to the style or type of link used.
When you select the Button variant, you can consider the design and user experience goals by choosing the button width.
When it comes to the appearance of buttons, you have two options: “auto” and “full width.”
You can horizontally align a link element using the horizontal alignment property. This will align the link on the page.
The color of a button refers to the visual appearance of the button itself. You can easily modify the link color in the Application Builder.
Navigate to the page where you can edit the button you want to modify and select the link element within the editor. Change the color using the Button color property in a General tab.
Click on the color picker or input field next to the color option.
Set the desired color of the heading using one of these methods:
Use a visual color picker tool to interactively choose a desired color.
Alternatively, you can inherit the default styles defined in the theme settings for a cohesive look.