attributeChangedCallback() — astro Function Reference
Architecture documentation for the attributeChangedCallback() function in toggle.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD fb15b2de_53c4_f893_a9a7_bc6b918b6d3a["attributeChangedCallback()"] 8a84a891_ea62_56c8_0c0a_767465d852c4["DevToolbarToggle"] fb15b2de_53c4_f893_a9a7_bc6b918b6d3a -->|defined in| 8a84a891_ea62_56c8_0c0a_767465d852c4 style fb15b2de_53c4_f893_a9a7_bc6b918b6d3a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/client/dev-toolbar/ui-library/toggle.ts lines 105–108
attributeChangedCallback() {
if (this.hasAttribute('toggle-style'))
this.toggleStyle = this.getAttribute('toggle-style') as ToggleStyle;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does attributeChangedCallback() do?
attributeChangedCallback() is a function in the astro codebase, defined in packages/astro/src/runtime/client/dev-toolbar/ui-library/toggle.ts.
Where is attributeChangedCallback() defined?
attributeChangedCallback() is defined in packages/astro/src/runtime/client/dev-toolbar/ui-library/toggle.ts at line 105.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free