core/bulkactions/bulk_action

Base class for defining a bulk action.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Members

selectedItems

Source:
Properties:
Name Type Description
selectedItems array

The array of selected item elements.

Methods

(inner) getBulkActionTriggerSelector() → {string}

Source:

Defines the selector of the element that triggers the bulk action.

Returns:
Type
string

(inner) registerListenerEvents(containerElement) → {void}

Source:

Registers the listener events for the bulk actions.

Parameters:
Name Type Description
containerElement HTMLElement

The container element for the bulk actions.

Returns:
Type
void

(inner) renderBulkActionTrigger() → {Promise}

Source:

Renders the bulk action trigger element.

Returns:
Type
Promise

(inner) setSelectedItems(selectedItems) → {void}

Source:

Setter method for the selectedItems property.

Parameters:
Name Type Description
selectedItems Array

The array of selected item elements..

Returns:
Type
void

(inner) triggerBulkAction()

Source:

Defines the behavior once the bulk action is triggered.