Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

NameRequiredTypeDefaultDescription
dataObjectfalseObjectThe data object of the managed bean.The data object of the component.
disabledfalseBooleanfalseFlag indicating that component is disabled or not.
iconfalseStringfa fa-trashIcon of the button as a css class.
idtrueStringnullUnique identifier of the component.
managedBeantrueStringnullThe name of the managed bean that will be used for retrieving the component values.
pageToRedirecttrueStringnullThe page to redirect when button is clicked.
styleClassfalseStringbtn btn-primaryStyle class of the component.
visiblefalseBooleantrueControls the visibility of the component.

Getting Started

The following example shows a delete button component.