Skip to main content
Version: 2.50.0-LTS

Link

The Link component allows you to add a hyperlink and navigate to the external URL.

Properties

Properties
Description
Expected Value
Link targetThis property sets the URL where the user needs to be taken on clicking the link.example: https://dev.to/tooljet or {{queries.xyz.data.url}}.
Link textThis property sets the text for the Link component.example: Click here or Open webpage.
Target typeThis property specifies the link to be opened in the same tab or new tab on clicking the link.Options: New Tab & Same Tab.

Events

Event
Description
On clickTriggered when the link is clicked.
On hoverTriggered when the cursor hovers over the link.
info

Check Action Reference docs to get the detailed information about all the Actions.

Component Specific Actions (CSA)

The following actions of the link component can be controlled using the component-specific actions(CSA):

Actions
Description
How To Access
clickTriggers click action of the link component.Employ a RunJS query to execute component-specific actions such as await components.link1.click() or trigger it using an event.

Exposed Variables

There are currently no exposed variables for the component.

General

Tooltip

A Tooltip is often used to specify extra information about something when the user hovers the mouse pointer over the component.

Under the General accordion, you can set the value in the string format. Now hovering over the component will display the string as the tooltip.

Devices

Property
Description
Expected Value
Show on desktopMakes the component visible in desktop view.You can set it with the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
Show on mobileMakes the component visible in mobile view.You can set it with the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.

Styles

Style
Description
Text colorYou can change the background color of the text by entering the Hex color code or choosing a color of your choice from the color picker.
Text sizeBy default, the text size is set to 14. You can enter any value from 1-100 to set a custom text size.
UnderlineYou can change the underline of the text in the following ways: on-hover (default), never, always.
VisibilityToggle on or off to control the visibility of the component. You can programmatically change its value by clicking on the fx button next to it. If {{false}} the component will not visible after the app is deployed. By default, it's set to {{true}}.
info

Any property having fx button next to its field can be programmatically configured.