Overview
The <crm:cancelButton> tag is used to display a cancel button on the page.
Note |
---|
It should be used defined only in in "actions" ui:define placeholder tag. |
Attributes
Name | Required | Type | Default | Description | ||
---|---|---|---|---|---|---|
disabled | false | Boolean | false | Flag indicating that component is disabled or not. | ||
icon | false | String | fa fa-times-circle | Icon of the button as a css class. | ||
id | true | String | null | Unique identifier of the component. | ||
managedBean | true | String | null | The name of the Java managed bean that class that will be used for retrieving the component values. | ||
mode | false | String | The mode of the managed bean. | The mode of the component.
| ||
pageToRedirect | true | String | null | The page to redirect when button is clicked. | ||
styleClass | false | String | btn btn-primary | Style class of the component. | ||
visible | false | Boolean | true if the mode is equals with EDIT, otherwise false | Controls the visibility of the component. |
Getting Started
The following example shows a cancel button component.