Skip to content

registerBodyClass

Adds a body class to the main window and every existing or future popout until the owner unloads. Use a plugin-specific class owned exclusively by this registration.

Import:

import { registerBodyClass } from '@mnaoumov/obsidian-lib/components/all-windows-event-component';

Signature:

function registerBodyClass(params: RegisterBodyClassParams): AllWindowsEventComponent

Parameters:

Parameter Type Description
params RegisterBodyClassParams The registration parameters. The owner must be loaded.

Returns: AllWindowsEventComponent — The child component; remove it from the owner to stop early.


Links to this page: