Skip to main content
Version: 2.1.0

Icon

An Icon widget can be used to add icons(sourced from icon library). It supports events like on hover and on click.

ToolJet - Widget - Icon

Properties

PropertiesdescriptionExpected value
IconUse this to choose an icon form the list of available iconsYou can also use the search bar in it to look for the icons

Events

ToolJet - Widget - Icon

To add an event, click on the icon widget's configuration handle to open the widget properties on the components drawer on the right. Go to the Events section and click on + Add handler.

The Icon widget supports the following events:

EventDescription
On hoverThis event is triggered when the cursor is hovered over the icon
On clickThis event is triggered when the icon is clicked

Just like any other event on ToolJet, you can set multiple handlers for any of the above-mentioned events.

info

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

General

Tooltip: Set a tooltip text to specify the information when the user moves the mouse pointer over the widget.

Layout

LayoutdescriptionExpected value
Show on desktopToggle on or off to show/hide the widget on desktop screens.You can programmatically determine the value by clicking on Fx to set the value {{true}} or {{false}}
Show on mobileToggle on or off to show/hide the widget on mobile screens.You can programmatically determine the value by clicking on Fx to set the value {{true}} or {{false}}

Styles

StyleDescriptionExpected value
Icon colorYou can change the color of the icon widget by entering the Hex color code or choosing a color of your choice from the color picker.
VisibilityThis is to control the visibility of the widget.If {{false}} the widget will not visible after the app is deployed.
Box shadowThis property adds a shadow to the widget.You can use different values for box shadow property like offsets, blur, spread, and the color code.
info

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