Skip to main content

Remove Button

Supported products
  • Central CMS
  • Central Forms
  • Central Connect

Used by other helpers to add consistenly styled button to indicate an object can be removed.

Basic usage

{{
html.remove_button({
'target': '#itemToRemove'
})
}}

Helper options

You can configure this helper using the common helper options, the following options are specific to this helper.

OptionTypeDescription
targetstringSelector of the item to be removed, will be turned into the data-action-target attribute
typestringType of button to create, can be button (default), link, input or submit

JavaScript hooks

The following attributes are added to the button, you can use these in your own JavaScript methods when removing items.

data-action="remove" data-action-target="#itemToRemove"