Home / Function/ attributeChangedCallback() — astro Function Reference

attributeChangedCallback() — astro Function Reference

Architecture documentation for the attributeChangedCallback() function in card.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  ea9a6b6e_7887_5160_cb08_58d74f806583["attributeChangedCallback()"]
  37f75f3c_f7fc_630d_6b0d_4943b32b71bd["DevToolbarCard"]
  ea9a6b6e_7887_5160_cb08_58d74f806583 -->|defined in| 37f75f3c_f7fc_630d_6b0d_4943b32b71bd
  4ef8718e_c8d4_405d_588e_d180e0a1916b["updateStyle()"]
  ea9a6b6e_7887_5160_cb08_58d74f806583 -->|calls| 4ef8718e_c8d4_405d_588e_d180e0a1916b
  style ea9a6b6e_7887_5160_cb08_58d74f806583 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/runtime/client/dev-toolbar/ui-library/card.ts lines 38–43

	attributeChangedCallback() {
		if (this.hasAttribute('card-style'))
			this.cardStyle = this.getAttribute('card-style') as CardStyle;

		this.updateStyle();
	}

Domain

Subdomains

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/card.ts.
Where is attributeChangedCallback() defined?
attributeChangedCallback() is defined in packages/astro/src/runtime/client/dev-toolbar/ui-library/card.ts at line 38.
What does attributeChangedCallback() call?
attributeChangedCallback() calls 1 function(s): updateStyle.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free