triggerPluginLifecycleEvent
Triggers one of the two lifecycle events on the app’s workspace.
A thin typed wrapper over Workspace.trigger, which accepts any event name and any arguments, so that the one place a payload is constructed is checked against PluginLifecycleEventPayload.
Import:
import { triggerPluginLifecycleEvent } from '@mnaoumov/obsidian-lib/plugin/plugin-lifecycle-events';Signature:
function triggerPluginLifecycleEvent(params: TriggerPluginLifecycleEventParams): voidParameters:
| Parameter | Type | Description |
|---|---|---|
params |
TriggerPluginLifecycleEventParams | The TriggerPluginLifecycleEventParams. |
Returns: void
Links to this page: