Skip to main content
Version: 2.35.0

Link

The Link widget 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 linkexample: https://dev.to/tooljet or {{queries.xyz.data.url}}
Link textThis property sets the text for the Link widgetexample: Click here or Open webpage
Target typeThis property specifies the link to be opened in the same tab or new tab on clicking the linkOptions: New Tab & Same Tab

Events

To add an event to a link, click on the widget handle to open the widget properties on the right sidebar. Go to the Events section and click on Add handler.

Event
Description
On clickOn Click event is triggered when the link is clicked. Just like any other event on ToolJet, you can set multiple handlers for on click event.
On hoverOn Hover event is triggered when the link is hovered. Just like any other event on ToolJet, you can set multiple handlers for on click event.
info

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

Component Specific Actions (CSA)

Following actions of link component can be controlled using the component specific actions(CSA):

Actions
Description
How To Access
clickYou can trigger the click action of the Link component via a component-specific action within any event handler.Employ a RunJS query to execute component-specific actions such as await components.link1.click()

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 widget.

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

Layout

Layout
Description
Expected Value
Show on desktopToggle on or off to display desktop view.You can programmatically determining the value by clicking on Fx to set the value {{true}} or {{false}}
Show on mobileToggle on or off to display mobile view.You can programmatically determining the value by clicking on Fx to set the value {{true}} or {{false}}

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 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 widget. You can programmatically change its value by clicking on the Fx button next to it. If {{false}} the widget 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.