SiThemeDomTarget Type documentation¶
TypeScript declaration¶
import type { SiThemeDomTarget } from '@siemens/element-ng/theme';DOM boundary controlled by SiThemeService.
Properties¶
- readonly
Element that receives theme and color-scheme classes.
- readonly
Event target for the legacy
theme-switchevent. - readonly
CSS selector used for runtime theme variables.
Methods¶
-
appendStyleElement
(style: HTMLStyleElement) => void¶Parameters -
forEachElement
(callback: (element: HTMLElement) => void) => void¶Parameters-
callback:
(element: HTMLElement) => void¶
-
-
getStyleElement
(id: string) => HTMLStyleElement | null¶ -
registerElement?
(element: HTMLElement) => () => void¶Parameters -
updateColorScheme
(colorScheme: ColorScheme) => void¶Parameters
Types Documentation¶
import type { ColorScheme } from '@siemens/element-ng/theme'; Except where otherwise noted, content on this site is licensed under MIT License.