Home / Function/ attributeChangedCallback() — astro Function Reference

attributeChangedCallback() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  266c2ebd_0d7a_ed4e_7c0d_653c0f0b7e4f["attributeChangedCallback()"]
  0be0f13c_4e4c_ecbe_a0e3_b8c2434de94f["DevToolbarButton"]
  266c2ebd_0d7a_ed4e_7c0d_653c0f0b7e4f -->|defined in| 0be0f13c_4e4c_ecbe_a0e3_b8c2434de94f
  style 266c2ebd_0d7a_ed4e_7c0d_653c0f0b7e4f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/runtime/client/dev-toolbar/ui-library/button.ts lines 173–178

	attributeChangedCallback() {
		if (this.hasAttribute('size')) this.size = this.getAttribute('size') as ButtonSize;

		if (this.hasAttribute('button-style'))
			this.buttonStyle = this.getAttribute('button-style') as ButtonStyle;
	}

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/button.ts.
Where is attributeChangedCallback() defined?
attributeChangedCallback() is defined in packages/astro/src/runtime/client/dev-toolbar/ui-library/button.ts at line 173.

Analyze Your Own Codebase

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

Try Supermodel Free