Currently active submenu id.
Readonly
contextAttribute used to count items.
Readonly
countTargets for displaying item counts.
Readonly
hasIndicates if w-dropdown outlet is present.
Readonly
menuMain menu target element.
Readonly
toggleTargets for submenu toggle buttons.
Readonly
wOutlets for action controllers.
Readonly
wOutlet for the dropdown controller.
Static
blessingsStatic
outletsStatic
targetsStatic
valuesStatic
shouldDerive the component’s targets based on the state, so the drilldown state can be controlled externally more easily.
Optional
prevActiveSubmenu: stringDelay closing the submenu to allow the top-level menu to fade out first. Useful for resetting the state when the user clicks outside the menu. This can be used as an action for the w-dropdown:hidden event of the menu, e.g. data-action="w-dropdown:hidden->w-drilldown#delayedClose".
Prevent clicks on the w-action outlets from closing the dropdown. Usage: data-action="w-dropdown:clickaway->w-drilldown#preventOutletClickaway"
Update the count of items in the menu. This is done by counting the number of elements with the data attribute specified by the countAttrValue value that have the same value as the data-count-name attribute of the countTarget. If the countTarget does not have a data-count-name attribute, then all elements with the data attribute specified by the countAttrValue value are counted.
Static
after
Drilldown menu interaction combined with URL-driven state management for listing filters.
Example