TreeMassActions component

Overview

The TreeMassActions component is a decorator for MassActions that adds the support of nested actions.

Constructor: app/code/Magento/Ui/view/base/web/js/grid/tree-massactions.js

TreeMassActions configuration

Extends all MassActions configuration.

TreeMassActions-specific configuration:

Option Description Type Default
submenuTemplate Path to the .html template used to render nested actions. String ui/grid/submenu
template Path to the component’s .html template. String ui/grid/tree-massactions
actions A list of available actions. (MassActionContainer | MassAction)[] -

MassActionContainer interface

Option Description Type Required
label Action's label displayed in the list of actions. String Required
type Action's identifier. String Required
actions A list of child elements that may contain both MassActionContainer and MassAction instances. (MassActionContainer | MassAction)[] Required