Currently active submenu id.
ReadonlycontextAttribute used to count items.
ReadonlycountTargets for displaying item counts.
ReadonlyhasIndicates if w-dropdown outlet is present.
ReadonlymenuMain menu target element.
ReadonlytoggleTargets for submenu toggle buttons.
ReadonlywOutlets for action controllers.
ReadonlywOutlet for the dropdown controller.
StaticblessingsStaticoutletsStatictargetsStaticvaluesStaticshouldDerive the component’s targets based on the state, so the drilldown state can be controlled externally more easily.
OptionalprevActiveSubmenu: 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.
Staticafter
Drilldown menu interaction combined with URL-driven state management for listing filters.
Example