injectIsDarkTheme Type documentation¶
TypeScript declaration¶
Returns a signal that reflects whether the current Element theme is dark ( Returns: A boolean signal — Throws: When called outside of an Angular injection context Returns a signal that reflects whether the current Element theme is dark ( Returns: A boolean signal — Throws: When called outside of an Angular injection contextimport { injectIsDarkTheme } from '@siemens/element-ng/theme';true) or light (false). The signal reacts to theme-switch events dispatched on window.true when the active theme is darkinjectIsDarkTheme(): Signal<boolean> true) or light (false). The signal reacts to theme-switch events dispatched on window.true when the active theme is dark
Except where otherwise noted, content on this site is licensed under MIT License.