attributeChangedCallback() — astro Function Reference
Architecture documentation for the attributeChangedCallback() function in highlight.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 32d69e79_f8a9_a615_3a3d_155ff35a8f6d["attributeChangedCallback()"] 72415224_142e_1e36_4c77_8fc883507bf2["DevToolbarHighlight"] 32d69e79_f8a9_a615_3a3d_155ff35a8f6d -->|defined in| 72415224_142e_1e36_4c77_8fc883507bf2 style 32d69e79_f8a9_a615_3a3d_155ff35a8f6d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/client/dev-toolbar/ui-library/highlight.ts lines 100–103
attributeChangedCallback() {
if (this.hasAttribute('highlight-style'))
this.highlightStyle = this.getAttribute('highlight-style') as HighlightStyle;
}
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/highlight.ts.
Where is attributeChangedCallback() defined?
attributeChangedCallback() is defined in packages/astro/src/runtime/client/dev-toolbar/ui-library/highlight.ts at line 100.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free