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.

Image Modified

Note

It should be defined only in "actions" ui:define tag.


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-trash

Icon of the button.

Note

Use font awesome icon class supported by version 4.7.0.


idtrueStringnullUnique identifier of the component.
managedBeantrueStringnullThe name of the Java managed bean class 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.