Skip to content

EventRef

Official

Event reference

Import:

import type { EventRef } from 'obsidian';

Signature:

export interface EventRef

Properties

PropertyTypeDescription
ctx?unknownContext applied to the event callback.
eEventsEvents object the event was registered on.
namestringEvent name the event was registered on.

Methods

MethodReturnsDescription
fn(arg?)voidFunction to be called on event trigger on the events object.

Links to this page: