Overview
This element uses Icon element and Label element to show text and icon(with background) and along with an alignment property to align the icon around the text. The purpose of this element is to initiate an action.Properties
Name | Type | Description |
---|---|---|
text | string | Text to appear on the element |
hoverText | string | Text to appear on the element on mouseover |
iconURL | string | Asset URL of the icon to be displayed on the element |
alignment | IconButtonAlignment | Group of constants representing the alignment options |
disabled | boolean | When set to true, prevents the user from interacting with the button: it cannot be pressed or focused. |
buttonStyle | object | Styling properties and values of the element |
Events
Events triggered by the elementName | Description |
---|---|
cc-button-clicked | Event triggered when user clicks on the element |