θaddThemingController
Creates and attaches a ThemingController to the given host element.
This is the preferred way to add theming support to a component. The controller
is registered with the host's reactive controller lifecycle and automatically
resolves the active theme from an ancestor <igc-theme-provider> context or
falls back to the application-wide theme set via configureTheme() .
Signature
θaddThemingController(host: ReactiveControllerHost & ReactiveElement, themes: Themes, config: ThemingControllerConfig): ThemingController Parameters
- host:
ReactiveControllerHost & ReactiveElementThe Lit element that will host the controller.
- themes:
ThemesThe theme styles map containing
lightanddarkvariant entries, each keyed by theme name (bootstrap,material,fluent,indigo) and an optionalsharedentry applied regardless of theme. - config:
ThemingControllerConfigOptional configuration.
Returns
ThemingController
The created ThemingController instance.