Skip to content

pantoken / renderers/web-components/src / drilldown

Variable: drilldown

const drilldown: ElementDefinition

Alpha

<instui-drilldown> — a stateful, multi-level menu over the menu styles. Each level is a light-DOM [data-page="id"] whose inner .items are cloned into a shadow .instui-menu; an item with data-goto="id" descends to that page and a synthesized Back row (or any [data-back] item) returns. The light DOM is the data source only — with no <slot> it never renders, so shadow CSS fully styles each panel. The active attribute reflects the current page and can be set to navigate; a bubbling navigate event (detail.page) fires on every move. Drivable from light DOM via Invoker Commands: <button command="--goto" commandfor="dd-id" data-page="…"> descends and <button command="--back" commandfor="dd-id"> returns.

Example

html
<instui-drilldown active="root">
  <div data-page="root">
    <div class="item" data-goto="settings">Settings</div>
  </div>
  <div data-page="settings">
    <div class="item">Profile</div>
  </div>
</instui-drilldown>
Settings
Profile