module:core/bulkactions/bulk_actions

module:core/bulkactions/bulk_actions

new (require("core/bulkactions/bulk_actions"))() → {void}

Source:

The class constructor.

Returns:
Type
void

Members

initialStickyFooterContent

Source:
Properties:
Name Type Description
initialStickyFooterContent string | null

The initial content of the sticky footer.

isBulkActionsModeEnabled

Source:
Properties:
Name Type Description
isBulkActionsModeEnabled boolean

Whether the bulk actions mode is enabled.

selectedItems

Source:
Properties:
Name Type Description
selectedItems Array

The array of selected item elements.

(inner, constant) The :Object

Source:

object containing the relevant selectors.

Type:
  • Object

Methods

(inner) disableBulkActionsMode() → {void}

Source:

Disables the bulk action mode.

Returns:
Type
void

(inner) enableBulkActionsMode() → {Promise}

Source:

Enables the bulk action mode.

Returns:
Type
Promise

(inner) getBulkActions() → {Array}

Source:

Returns the array of the relevant bulk action objects.

Returns:
Type
Array

(inner) getSelectedItems() → {Array}

Source:

Returns the array of selected items.

Returns:
Type
Array

(inner) getStickyFooterContainer() → {HTMLElement}

Source:

Returns the sticky footer container.

Returns:
Type
HTMLElement

(inner) registerItemSelectChangeEvent(eventHandler) → {void}

Source:

Adds the listener for the item select change event. The event handler function that is passed as a parameter should be called right after the event is triggered.

Parameters:
Name Type Description
eventHandler function

The event handler function.

Returns:
Type
void

(inner) renderBulkActions() → {Promise}

Source:

Renders the bulk actions content.

Returns:
Type
Promise

(inner) updateBulkItemSelection() → {void}

Source:

Updates the selected items count in the bulk actions content.

Returns:
Type
void