Behaviours
The attributes a page writes to wire up the platform’s one controller, read off what that controller looks for. Served over MCP as vizitka://docs/behaviors, and by describe_vocabulary with topic=behaviors.
disclosure
Section titled “disclosure”A file writes use="disclosure".
Its methods: toggle, show, close, closeOnLink, closeOnEscape.
data-controller="disclosure" data-action="keydown.esc@window->disclosure#closeOnEscape"disclosure-control
Section titled “disclosure-control”A file writes ref="disclosure.control".
role="button" tabindex="0" aria-expanded="false" data-disclosure-target="control" data-action="click->disclosure#toggle keydown.enter->disclosure#toggle keydown.space->disclosure#toggle"disclosure-panel
Section titled “disclosure-panel”A file writes ref="disclosure.panel".
hidden data-disclosure-target="panel" data-action="click->disclosure#closeOnLink"disclosure-backdrop
Section titled “disclosure-backdrop”A file writes ref="disclosure.backdrop".
hidden data-disclosure-target="backdrop" data-action="click->disclosure#close"