Skip to content

EventRef

Official

Event reference

Import:

import type { EventRef } from 'obsidian';

Signature:

export interface EventRef

Properties

Property Type Description
ctx? unknown Context applied to the event callback.
e Events Events object the event was registered on.
name string Event name the event was registered on.

Methods

Method Returns Description
fn(arg?) void Function to be called on event trigger on the events object.

Links to this page: