跳到主要内容

Class: LlamaIndexCustomEvent<T>

Extends

  • defaultCustomEvent<T>

Type parameters

T = any

Constructors

new LlamaIndexCustomEvent()

private new LlamaIndexCustomEvent<T>(event, options?): LlamaIndexCustomEvent<T>

Parameters

event: string

options?: CustomEventInit<any> & object

Returns

LlamaIndexCustomEvent<T>

Overrides

CustomEvent<T>.constructor

Source

packages/llamaindex/src/callbacks/CallbackManager.ts:22

Properties

#private

private #private: any

Inherited from

CustomEvent.#private

Source

packages/env/dist/type/utils.d.ts:38


AT_TARGET

readonly AT_TARGET: 2

Inherited from

CustomEvent.AT_TARGET

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8226


BUBBLING_PHASE

readonly BUBBLING_PHASE: 3

Inherited from

CustomEvent.BUBBLING_PHASE

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8227


CAPTURING_PHASE

readonly CAPTURING_PHASE: 1

Inherited from

CustomEvent.CAPTURING_PHASE

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8225


NONE

readonly NONE: 0

Inherited from

CustomEvent.NONE

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8224


bubbles

readonly bubbles: boolean

Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.

MDN Reference

Inherited from

CustomEvent.bubbles

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8121


cancelBubble

cancelBubble: boolean

Deprecated

MDN Reference

Inherited from

CustomEvent.cancelBubble

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8127


cancelable

readonly cancelable: boolean

Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.

MDN Reference

Inherited from

CustomEvent.cancelable

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8133


composed

readonly composed: boolean

Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.

MDN Reference

Inherited from

CustomEvent.composed

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8139


currentTarget

readonly currentTarget: null | EventTarget

Returns the object whose event listener's callback is currently being invoked.

MDN Reference

Inherited from

CustomEvent.currentTarget

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8145


defaultPrevented

readonly defaultPrevented: boolean

Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.

MDN Reference

Inherited from

CustomEvent.defaultPrevented

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8151


eventPhase

readonly eventPhase: number

Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.

MDN Reference

Inherited from

CustomEvent.eventPhase

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8157


isTrusted

readonly isTrusted: boolean

Returns true if event was dispatched by the user agent, and false otherwise.

MDN Reference

Inherited from

CustomEvent.isTrusted

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8163


reason

reason: null | EventCaller

Source

packages/llamaindex/src/callbacks/CallbackManager.ts:21


returnValue

returnValue: boolean

Deprecated

MDN Reference

Inherited from

CustomEvent.returnValue

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8169


srcElement

readonly srcElement: null | EventTarget

Deprecated

MDN Reference

Inherited from

CustomEvent.srcElement

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8175


target

readonly target: null | EventTarget

Returns the object to which event is dispatched (its target).

MDN Reference

Inherited from

CustomEvent.target

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8181


timeStamp

readonly timeStamp: number

Returns the event's timestamp as the number of milliseconds measured relative to the time origin.

MDN Reference

Inherited from

CustomEvent.timeStamp

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8187


type

readonly type: string

Returns the type of event, e.g. "click", "hashchange", or "submit".

MDN Reference

Inherited from

CustomEvent.type

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8193


AT_TARGET

static readonly AT_TARGET: 2

Inherited from

CustomEvent.AT_TARGET

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8235


BUBBLING_PHASE

static readonly BUBBLING_PHASE: 3

Inherited from

CustomEvent.BUBBLING_PHASE

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8236


CAPTURING_PHASE

static readonly CAPTURING_PHASE: 1

Inherited from

CustomEvent.CAPTURING_PHASE

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8234


NONE

static readonly NONE: 0

Inherited from

CustomEvent.NONE

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8233

Accessors

detail

get detail(): T

Returns

T

Source

packages/env/dist/type/utils.d.ts:39

Methods

composedPath()

composedPath(): EventTarget[]

Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.

MDN Reference

Returns

EventTarget[]

Inherited from

CustomEvent.composedPath

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8199


initCustomEvent()

initCustomEvent(): void

Returns

void

Inherited from

CustomEvent.initCustomEvent

Deprecated

This method is not supported

Source

packages/env/dist/type/utils.d.ts:44


initEvent()

initEvent(type, bubbles?, cancelable?): void

Parameters

type: string

bubbles?: boolean

cancelable?: boolean

Returns

void

Inherited from

CustomEvent.initEvent

Deprecated

MDN Reference

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8205


preventDefault()

preventDefault(): void

If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.

MDN Reference

Returns

void

Inherited from

CustomEvent.preventDefault

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8211


stopImmediatePropagation()

stopImmediatePropagation(): void

Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.

MDN Reference

Returns

void

Inherited from

CustomEvent.stopImmediatePropagation

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8217


stopPropagation()

stopPropagation(): void

When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.

MDN Reference

Returns

void

Inherited from

CustomEvent.stopPropagation

Source

node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts:8223


fromEvent()

static fromEvent<Type>(type, detail): LlamaIndexCustomEvent<any>

Type parameters

Type extends keyof LlamaIndexEventMaps

Parameters

type: Type

detail: LlamaIndexEventMaps[Type]["detail"]

Returns

LlamaIndexCustomEvent<any>

Source

packages/llamaindex/src/callbacks/CallbackManager.ts:32