Trilium Frontend API
    Preparing search index...

    Interface GlobalEventHandlers

    interface GlobalEventHandlers {
        onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
        onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
        onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
        onanimationiteration: (
            this: GlobalEventHandlers,
            ev: AnimationEvent,
        ) => any;
        onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
        onauxclick: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
        onbeforematch: (this: GlobalEventHandlers, ev: Event) => any;
        onbeforetoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any;
        onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
        oncancel: (this: GlobalEventHandlers, ev: Event) => any;
        oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
        oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any;
        onchange: (this: GlobalEventHandlers, ev: Event) => any;
        onclick: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onclose: (this: GlobalEventHandlers, ev: Event) => any;
        oncontextlost: (this: GlobalEventHandlers, ev: Event) => any;
        oncontextmenu: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        oncontextrestored: (this: GlobalEventHandlers, ev: Event) => any;
        oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
        oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
        oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
        ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
        ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
        ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
        ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any;
        ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
        ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
        ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
        ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
        ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
        onemptied: (this: GlobalEventHandlers, ev: Event) => any;
        onended: (this: GlobalEventHandlers, ev: Event) => any;
        onerror: OnErrorEventHandlerNonNull;
        onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any;
        onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any;
        ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        oninput: (this: GlobalEventHandlers, ev: Event) => any;
        oninvalid: (this: GlobalEventHandlers, ev: Event) => any;
        onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
        onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
        onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
        onload: (this: GlobalEventHandlers, ev: Event) => any;
        onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
        onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
        onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
        onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any;
        onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any;
        onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any;
        onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
        onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
        onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
        onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
        onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
        onpause: (this: GlobalEventHandlers, ev: Event) => any;
        onplay: (this: GlobalEventHandlers, ev: Event) => any;
        onplaying: (this: GlobalEventHandlers, ev: Event) => any;
        onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onpointerrawupdate: (this: GlobalEventHandlers, ev: Event) => any;
        onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
        onprogress: (this: GlobalEventHandlers, ev: ProgressEvent) => any;
        onratechange: (this: GlobalEventHandlers, ev: Event) => any;
        onreset: (this: GlobalEventHandlers, ev: Event) => any;
        onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
        onscroll: (this: GlobalEventHandlers, ev: Event) => any;
        onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
        onsecuritypolicyviolation: (
            this: GlobalEventHandlers,
            ev: SecurityPolicyViolationEvent,
        ) => any;
        onseeked: (this: GlobalEventHandlers, ev: Event) => any;
        onseeking: (this: GlobalEventHandlers, ev: Event) => any;
        onselect: (this: GlobalEventHandlers, ev: Event) => any;
        onselectionchange: (this: GlobalEventHandlers, ev: Event) => any;
        onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
        onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
        onstalled: (this: GlobalEventHandlers, ev: Event) => any;
        onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
        onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
        ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
        ontoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any;
        ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
        ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
        ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
        ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
        ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
        ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
        ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
        ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
        onvolumechange: (this: GlobalEventHandlers, ev: Event) => any;
        onwaiting: (this: GlobalEventHandlers, ev: Event) => any;
        onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any;
        onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
        onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
        onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
        onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
        addEventListener<K extends keyof GlobalEventHandlersEventMap>(
            type: K,
            listener: (
                this: GlobalEventHandlers,
                ev: GlobalEventHandlersEventMap[K],
            ) => any,
            options?: boolean | AddEventListenerOptions,
        ): void;
        addEventListener(
            type: string,
            listener: EventListenerOrEventListenerObject,
            options?: boolean | AddEventListenerOptions,
        ): void;
        removeEventListener<K extends keyof GlobalEventHandlersEventMap>(
            type: K,
            listener: (
                this: GlobalEventHandlers,
                ev: GlobalEventHandlersEventMap[K],
            ) => any,
            options?: boolean | EventListenerOptions,
        ): void;
        removeEventListener(
            type: string,
            listener: EventListenerOrEventListenerObject,
            options?: boolean | EventListenerOptions,
        ): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    onabort: (this: GlobalEventHandlers, ev: UIEvent) => any
    onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any
    onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any
    onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any
    onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any
    onauxclick: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any
    onbeforematch: (this: GlobalEventHandlers, ev: Event) => any
    onbeforetoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any
    onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any
    oncancel: (this: GlobalEventHandlers, ev: Event) => any
    oncanplay: (this: GlobalEventHandlers, ev: Event) => any
    oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any
    onchange: (this: GlobalEventHandlers, ev: Event) => any
    onclick: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onclose: (this: GlobalEventHandlers, ev: Event) => any
    oncontextlost: (this: GlobalEventHandlers, ev: Event) => any
    oncontextmenu: (this: GlobalEventHandlers, ev: PointerEvent) => any
    oncontextrestored: (this: GlobalEventHandlers, ev: Event) => any
    oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any
    oncuechange: (this: GlobalEventHandlers, ev: Event) => any
    oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any
    ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any
    ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any
    ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any
    ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any
    ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any
    ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any
    ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any
    ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any
    ondurationchange: (this: GlobalEventHandlers, ev: Event) => any
    onemptied: (this: GlobalEventHandlers, ev: Event) => any
    onended: (this: GlobalEventHandlers, ev: Event) => any
    onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any
    onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any
    ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any
    oninput: (this: GlobalEventHandlers, ev: Event) => any
    oninvalid: (this: GlobalEventHandlers, ev: Event) => any
    onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any
    onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any

    MDN Reference

    onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any
    onload: (this: GlobalEventHandlers, ev: Event) => any
    onloadeddata: (this: GlobalEventHandlers, ev: Event) => any
    onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any
    onloadstart: (this: GlobalEventHandlers, ev: Event) => any
    onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any
    onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any
    onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any
    onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any
    onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any
    onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any
    onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any
    onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any
    onpause: (this: GlobalEventHandlers, ev: Event) => any
    onplay: (this: GlobalEventHandlers, ev: Event) => any
    onplaying: (this: GlobalEventHandlers, ev: Event) => any
    onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onpointerrawupdate: (this: GlobalEventHandlers, ev: Event) => any

    Available only in secure contexts.

    MDN Reference

    onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any
    onprogress: (this: GlobalEventHandlers, ev: ProgressEvent) => any
    onratechange: (this: GlobalEventHandlers, ev: Event) => any
    onreset: (this: GlobalEventHandlers, ev: Event) => any
    onresize: (this: GlobalEventHandlers, ev: UIEvent) => any
    onscroll: (this: GlobalEventHandlers, ev: Event) => any
    onscrollend: (this: GlobalEventHandlers, ev: Event) => any
    onsecuritypolicyviolation: (
        this: GlobalEventHandlers,
        ev: SecurityPolicyViolationEvent,
    ) => any
    onseeked: (this: GlobalEventHandlers, ev: Event) => any
    onseeking: (this: GlobalEventHandlers, ev: Event) => any
    onselect: (this: GlobalEventHandlers, ev: Event) => any
    onselectionchange: (this: GlobalEventHandlers, ev: Event) => any
    onselectstart: (this: GlobalEventHandlers, ev: Event) => any
    onslotchange: (this: GlobalEventHandlers, ev: Event) => any
    onstalled: (this: GlobalEventHandlers, ev: Event) => any
    onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any
    onsuspend: (this: GlobalEventHandlers, ev: Event) => any
    ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any
    ontoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any
    ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any
    ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any
    ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any
    ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any
    ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any
    ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any
    ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any
    ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any
    onvolumechange: (this: GlobalEventHandlers, ev: Event) => any
    onwaiting: (this: GlobalEventHandlers, ev: Event) => any
    onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any

    This is a legacy alias of onanimationend.

    MDN Reference

    onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any

    This is a legacy alias of onanimationiteration.

    MDN Reference

    onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any

    This is a legacy alias of onanimationstart.

    MDN Reference

    onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any

    This is a legacy alias of ontransitionend.

    MDN Reference

    onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any

    Methods