Home / Function/ onToolbarPlacementUpdated() — astro Function Reference

onToolbarPlacementUpdated() — astro Function Reference

Architecture documentation for the onToolbarPlacementUpdated() function in helpers.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  21b3036c_cb0c_6dd8_ca2f_f93e71e2b803["onToolbarPlacementUpdated()"]
  7719489a_66d6_a31e_2dbd_67d7bbb35c8a["ToolbarAppEventTarget"]
  21b3036c_cb0c_6dd8_ca2f_f93e71e2b803 -->|defined in| 7719489a_66d6_a31e_2dbd_67d7bbb35c8a
  style 21b3036c_cb0c_6dd8_ca2f_f93e71e2b803 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/runtime/client/dev-toolbar/helpers.ts lines 72–77

	onToolbarPlacementUpdated(callback: ToolbarPlacementUpdatedEvent) {
		this.addEventListener('placement-updated', (evt) => {
			if (!(evt instanceof CustomEvent)) return;
			callback(evt.detail);
		});
	}

Domain

Subdomains

Frequently Asked Questions

What does onToolbarPlacementUpdated() do?
onToolbarPlacementUpdated() is a function in the astro codebase, defined in packages/astro/src/runtime/client/dev-toolbar/helpers.ts.
Where is onToolbarPlacementUpdated() defined?
onToolbarPlacementUpdated() is defined in packages/astro/src/runtime/client/dev-toolbar/helpers.ts at line 72.

Analyze Your Own Codebase

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

Try Supermodel Free