setNotificationVisible() — astro Function Reference
Architecture documentation for the setNotificationVisible() function in toolbar.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 362790c1_8a8a_ab85_e8e1_e692f06bf587["setNotificationVisible()"] 833f7e6d_4781_eb37_c633_27829bbb8361["AstroDevToolbar"] 362790c1_8a8a_ab85_e8e1_e692f06bf587 -->|defined in| 833f7e6d_4781_eb37_c633_27829bbb8361 b2d441c5_a363_0a99_57fc_b8f8854a4ea8["getAppCanvasById()"] 362790c1_8a8a_ab85_e8e1_e692f06bf587 -->|calls| b2d441c5_a363_0a99_57fc_b8f8854a4ea8 style 362790c1_8a8a_ab85_e8e1_e692f06bf587 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/client/dev-toolbar/toolbar.ts lines 555–562
setNotificationVisible(newStatus: boolean) {
this.devToolbarContainer?.toggleAttribute('data-no-notification', !newStatus);
const moreCanvas = this.getAppCanvasById('astro:more');
moreCanvas?.shadowRoot
?.querySelector('#dropdown')
?.toggleAttribute('data-no-notification', !newStatus);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does setNotificationVisible() do?
setNotificationVisible() is a function in the astro codebase, defined in packages/astro/src/runtime/client/dev-toolbar/toolbar.ts.
Where is setNotificationVisible() defined?
setNotificationVisible() is defined in packages/astro/src/runtime/client/dev-toolbar/toolbar.ts at line 555.
What does setNotificationVisible() call?
setNotificationVisible() calls 1 function(s): getAppCanvasById.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free