Back to Trilium

Interface EventData

docs/Script API/interfaces/Frontend_Script_API._internal_.EventData.html

0.102.22.1 KB
Original Source

Interface EventData

Context object passed to events and hook functions.

interface EventData {
node: FancytreeNode;
options: FancytreeOptions;
originalEvent: JQueryEventObject;
response: any;
result: any;
targetType: string;
tree: Fancytree;
widget: any;
}

Index

Properties

nodeoptionsoriginalEventresponseresulttargetTypetreewidget

Properties

node

node: FancytreeNode

The node that this call applies to (null for tree events)

options

options: FancytreeOptions

Shortcut to tree.options

originalEvent

originalEvent: JQueryEventObject

The jQuery Event that initially triggered this call

response

response: any

(only for postProcess event) Original ajax response

result

result: any

(output parameter) Event handlers can return values back to the caller. Used by lazyLoad, postProcess, ...

targetType

targetType: string

(only for click and dblclick events) 'title' | 'prefix' | 'expander' | 'checkbox' | 'icon'

tree

tree: Fancytree

The tree instance

widget

widget: any

The jQuery UI tree widget

Settings

Member Visibility

  • Protected
  • Inherited
  • External

ThemeOSLightDark

On This Page

Properties nodeoptionsoriginalEventresponseresulttargetTypetreewidget