Search results

Button Widget

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.

How to configure the button widget

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.

Button Widget

Click the Properties button in the configuration panel’s property pane to visualize the button widget more effectively.

Basic Settings

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.

Basic Settings Tooltip

Border

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.

Border Styles

Text

The Text option in the properties panel allows user to change text styles using the following options.

Text Properties

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.

Text Styles

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.

Text Alignment

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.

Text Padding Alignment

Icon

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.

Icon Properties

By clicking on the Icons dropdown, the following icon options will be listed: Right Arrow, Left Arrow, Undo, Redo, Help and Information.

List of Icon option

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.

Icon Styles

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.

Icon Placement

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.

Icon alignment

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.

Icon Padding Alignment

Fill

Enabling the Fill option allows the user to add a background color or background image to the button widget.

Fill option

Enable Background Color

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.

Background Color

Enable Background Image

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.

  1. By selecting the 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.

Local Background Image

  1. By selecting the 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.

URL Background Image

Based on the aforementioned Image Type option, the background image will be applied to the button widget, as illustrated below.

Local and URL Background Image

Using the Mode option in the Fill section. The mode can be customized as listed below.

  1. Default

The image will be displayed in its original size.

  1. Fill

The image will be filled in the available space.

  1. Uniform to Fill

The image will uniformly occupy the space but may get clipped if it is larger than the control.

  1. Uniform

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.

Image Rotation

The Link option in the button widget allows the user to add a link that will be navigated when the widget is clicked.

Link URL

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.