Home / Function/ attributeChangedCallback() — astro Function Reference

attributeChangedCallback() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  66ad2bff_f56d_df08_3959_c9aff533b865["attributeChangedCallback()"]
  bc3405ae_fd18_8ad9_3e21_98219f1338ab["DevToolbarBadge"]
  66ad2bff_f56d_df08_3959_c9aff533b865 -->|defined in| bc3405ae_fd18_8ad9_3e21_98219f1338ab
  style 66ad2bff_f56d_df08_3959_c9aff533b865 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/runtime/client/dev-toolbar/ui-library/badge.ts lines 101–106

	attributeChangedCallback() {
		if (this.hasAttribute('badge-style'))
			this.badgeStyle = this.getAttribute('badge-style') as BadgeStyle;

		if (this.hasAttribute('size')) this.size = this.getAttribute('size') as BadgeSize;
	}

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

Analyze Your Own Codebase

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

Try Supermodel Free