The Button widget
allows users to trigger actions and events within their dashboards. It enhances interactivity by enabling users to seamlessly navigate between different dashboards. Additionally, the purpose of the Button widget and the actions performed when clicking on it can be described in the tooltip.
Drag and drop the Button Widget
control icon from the toolbox onto the design panel. You can locate the control by searching for it in the toolbox. The widget can be resized as required.
Click the Properties
button in the configuration panel’s property pane to visualize the button widget more effectively.
The tooltip
option in the Basic settings of the properties panel for the Button widget
allows the user to add content that will be displayed while hovering over the widget, without any limits on the amount of text that can be added.
Enabling the Border
option in the Properties panel allows the user to add a border to the Button widget. We can customize the Border color
, Border Thickness
, and Border Type
of the widget. By default, the Border Type is set to Solid
, but it can be changed to Dotted
or Dashed
.
The Text
option in the properties panel allows user to change text styles using the following options.
The default text of the Button
can be changed to any desired text according to your preferences. The color and font size of the text can be adjusted using the Color
and Font Size
options in the Text section of the Properties panel.
The Horizontal Alignment
and Vertical Alignment
options allow to align the text displayed in the Button widget. By default, both options are set to center
, but they can also be changed to Left
or Right
.
The padding of the text displayed in the button widget can be customized using the options Padding Top
, Padding Bottom
, Padding Right
, and Padding Left
. By default, all of these options are set to 0
.
Enabling the Icon
option in the properties panel allows to include an icon in the button widget. By default, this option is disabled, and the Icons
setting will be set to Blanks
. So, no icons will be displayed in the button widget.
By clicking on the Icons
dropdown, the following icon options will be listed: Right Arrow
, Left Arrow
, Undo
, Redo
, Help
and Information
.
The color and size of the applied icon can be customized using the Color
and Icon Size
options in the Icon section of the Properties Panel.
The Icon Placement
will be set to Custom
by default, so the icon will appear at the top of the Button widget. However, we can customize the Icon Placement
to options such as Left of Text
, Right of Text
, Above Text
, and Below Text
.
The Horizontal Alignment
and Vertical Alignment
options allows to align the icon added to the Button widget. By default, both options are set to center
, but they can also be changed to Left
or Right
. Both Alignment option will be shown only for the Icon Placement
as Custom
.
The padding of the text displayed in the button widget can be customized using the options Padding Top
, Padding Bottom
, Padding Right
, and Padding Left
. By default, all of the mentioned options will be set to 0
.
Enabling the Fill
option allows the user to add a background color or background image to the button widget.
Enabling the Enable Background Color
option in the Fill
section of the properties panel and applying a background color using the Background Color
option allows users to change the background color of the button widget. The transparency of the background color can be adjusted using the Transparency
option in the Fill
section of the properties panel.
Enabling the Enable Background Image
option in the Fill
section of the properties panel and applying the background image using the Local
or URL
options allows users to change the background image of the button widget.
Image Type
as Local
, the user can choose an image from their local device by browsing for it. This image can then be applied as the background image of the button widget.Image Type
as URL
and entering the image URL in the Background Image URL
text box, the user can set the background image for the button widget.Based on the aforementioned Image Type
option, the background image will be applied to the button widget, as illustrated below.
Using the Mode
option in the Fill
section. The mode can be customized as listed below.
The image will be displayed in its original size.
The image will be filled in the available space.
The image will uniformly occupy the space but may get clipped if it is larger than the control.
The image sizes proportionally (without clipping) to best fit the widget area.
There is an option to rotate the background image in the Button widget according to your preference to 0
, 90
, 180
, or 270
degrees.
The Link option in the button widget allows the user to add a link that will be navigated when the widget is clicked.
The URL to be navigated should be entered in the URL
text box, after which the Mode
can be selected. This selection determines how the added URL will be displayed: in a New Tab
, Same Page
, Current Frame
, Parent Frame
, Pop Up
, or New Window
. Based on the selected mode, the URL entered in the text box will be rendered when the button widget is clicked.