Magento 2.1.18 is the final 2.1.x release. After June 2019, Magento 2.1.x will no longer receive security patches, quality fixes, or documentation updates.
To maintain your site's performance, security, and PCI compliance, upgrade to the latest version of Magento.

ActionsColumn component

The ActionsColumns component implements a table’s column responsible for displaying and performing a list of record-related actions.

Configuration options

Option Description Type Default
bodyTmpl Path to the .html template used to render a column's field in the table's body. String ui/grid/cells/actions
draggable Defines whether a user can change column's position in the table by grabbing column's header and dragging it across the table. Boolean false
fieldClass Additional CSS classes added to the column's field elements. {[name: string]: Boolean} {'data-grid-actions-cell': true}
sortable Whether column's fields can be used to sort records in the table. Boolean false
templates.actions A list of actions that will be displayed in column's fields. {[name: String]: ActionItem} -

ActionItem interface

Option Description Type Required
callback Custom action's handler. ColumnAction | Array <ColumnAction> Optional
confirm Confirmation message shown before applying the action.
{
title: string;
message: string
}
Optional
href The link to open on when the column's element is clicked. String Optional
index Action's identifier. String Required
label Label to be displayed in the field. String Required

Source files

Extends Column:

Updated