forEachWindow
Applies a handler to the main window immediately and to existing and future popouts after layout ready. Cleanup runs when each window closes or the owning component unloads.
Import:
import { forEachWindow } from '@mnaoumov/obsidian-lib/components/all-windows-event-component';Signature:
function forEachWindow(params: ForEachWindowParams): AllWindowsEventComponentParameters:
| Parameter | Type | Description |
|---|---|---|
params |
ForEachWindowParams | 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: