Overview
The <crm:deleteButton> tag is used to display a delete button on the page.
Note |
---|
It is used only in "actions" ui:define placeholder. |
Attributes
Name | Required | Type | Default | Description |
---|---|---|---|---|
dataObject | false | Object | The data object of the managed bean. | The data object of the component. |
disabled | false | Boolean | false | Flag indicating that component is disabled or not. |
icon | false | String | fa fa-trash | 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 managed bean that will be used for retrieving the component values. |
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 | Controls the visibility of the component. |
Getting Started
The following example shows a delete button component.