registerStyle
Attaches a stylesheet to the main window and every popout window, including popouts opened later, until the owning component unloads.
Import:
import { registerStyle } from '@mnaoumov/obsidian-lib/components/style-sheet-component';Signature:
function registerStyle(params: RegisterStyleParams): StyleSheetComponentParameters:
| Parameter | Type | Description |
|---|---|---|
params |
RegisterStyleParams | The RegisterStyleParams. |
Returns: StyleSheetComponent — The StyleSheetComponent, whose StyleSheetComponent.setCss replaces the CSS.
Links to this page: