toggleState() — astro Function Reference
Architecture documentation for the toggleState() function in helpers.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 52a7b830_e65e_f7a0_82d7_cd6b00e8587d["toggleState()"] 7719489a_66d6_a31e_2dbd_67d7bbb35c8a["ToolbarAppEventTarget"] 52a7b830_e65e_f7a0_82d7_cd6b00e8587d -->|defined in| 7719489a_66d6_a31e_2dbd_67d7bbb35c8a style 52a7b830_e65e_f7a0_82d7_cd6b00e8587d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/client/dev-toolbar/helpers.ts lines 47–55
toggleState(options: AppStatePayload) {
this.dispatchEvent(
new CustomEvent('toggle-app', {
detail: {
state: options.state,
} satisfies AppStatePayload,
}),
);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does toggleState() do?
toggleState() is a function in the astro codebase, defined in packages/astro/src/runtime/client/dev-toolbar/helpers.ts.
Where is toggleState() defined?
toggleState() is defined in packages/astro/src/runtime/client/dev-toolbar/helpers.ts at line 47.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free