Skip to main content

Button with Icon


Buttons enable the users to initiate an action - buttons with icons indicate this purpose pretty clearly. As follows:

DownloadEditSuccess
IconButtonIconButtonIconButton

Button (Icon) Properties

PropertyDescription
Icon TypeChoose from a list of available icons. Arrows (Top/Right/Bottom/Left), Download, Edit, Delete, Alert, and Success. [Note: To have "only" the icon displayed, clear the "Label" field.]
Icon SizeSets the size of the selected icon.
Icon ColorSets the color of the selected icon.
Icon GapSpace between the text on the button and the icon.
Icon Placement (Left/Right)Select the side to which the icon is placed with respect to the text.

API Methods

setDisabled

Sets the Disabled flag for this component.

setDisabled(readOnly: boolean): void

setVisibility

Sets the Visibility flag for this component.

setVisibility(visible: boolean): void

setVisibilityCondition

Sets the visibility condition for this component.

setVisibilityCondition(condition: string): void

Event Handlers

Event handlers allow you to set triggers for various actions based on the fired events. They are as follows:

onClick

onClick - Triggers an action, such as calling for a service or function when the widget is clicked.

Note: Disable (*checkbox) - Selecting this checkbox grays out the button, making it unavailable to click.