@univerjs/engine-render v0.4.2 • Docs
Interface: IEvent
Native friendly interface for Event Obj ect
Extends
Event
Extended by
Properties
Property | Modifier | Type | Description | Inherited from | Defined in |
---|---|---|---|---|---|
AT_TARGET | readonly | 2 | - | Event.AT_TARGET | node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8226 |
BUBBLING_PHASE | readonly | 3 | - | Event.BUBBLING_PHASE | node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8227 |
CAPTURING_PHASE | readonly | 1 | - | Event.CAPTURING_PHASE | node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8225 |
NONE | readonly | 0 | - | Event.NONE | node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8224 |
bubbles | readonly | 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 (opens in a new tab) | Event.bubbles | node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8121 |
cancelBubble | public | boolean | Deprecated MDN Reference (opens in a new tab) | Event.cancelBubble | node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8127 |
cancelable | readonly | 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 (opens in a new tab) | Event.cancelable | node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8133 |
composed | readonly | 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 (opens in a new tab) | Event.composed | node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8139 |
currentState | public | Nullable <number > | Current state of given input | - | submodules/univer/packages/engine-render/src/basics/i-events.ts:122 (opens in a new tab) |
currentTarget | readonly | null | EventTarget | Returns the object whose event listener's callback is currently being invoked. MDN Reference (opens in a new tab) | Event.currentTarget | node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8145 |
defaultPrevented | readonly | boolean | Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. MDN Reference (opens in a new tab) | Event.defaultPrevented | node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8151 |
deviceType | public | DeviceType | Device type | - | submodules/univer/packages/engine-render/src/basics/i-events.ts:110 (opens in a new tab) |
eventPhase | readonly | number | Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. MDN Reference (opens in a new tab) | Event.eventPhase | node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8157 |
inputIndex | public | number | Device slot | - | submodules/univer/packages/engine-render/src/basics/i-events.ts:114 (opens in a new tab) |
isTrusted | readonly | boolean | Returns true if event was dispatched by the user agent, and false otherwise. MDN Reference (opens in a new tab) | Event.isTrusted | node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8163 |
previousState | public | Nullable <number > | Previous state of given input | - | submodules/univer/packages/engine-render/src/basics/i-events.ts:118 (opens in a new tab) |
returnValue | public | boolean | Deprecated MDN Reference (opens in a new tab) | Event.returnValue | node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8169 |
srcElement | readonly | null | EventTarget | Deprecated MDN Reference (opens in a new tab) | Event.srcElement | node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8175 |
target | readonly | null | EventTarget | Returns the object to which event is dispatched (its target). MDN Reference (opens in a new tab) | Event.target | node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8181 |
timeStamp | readonly | number | Returns the event's timestamp as the number of milliseconds measured relative to the time origin. MDN Reference (opens in a new tab) | Event.timeStamp | node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8187 |
type | readonly | string | Returns the type of event, e.g. "click", "hashchange", or "submit". MDN Reference (opens in a new tab) | Event.type | node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8193 |
Methods
composedPath()
composedPath(undefined)
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 (opens in a new tab)
Returns
EventTarget
[]
Inherited from
Event.composedPath
Defined in
node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8199
composedPath(undefined)
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 (opens in a new tab)
Returns
EventTarget
[]
Inherited from
Event.composedPath
Defined in
node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.webworker.d.ts:2523
initEvent()
initEvent(type, bubbles, cancelable)
initEvent(
type,
bubbles?,
cancelable?): void
Parameters
Parameter | Type |
---|---|
type | string |
bubbles ? | boolean |
cancelable ? | boolean |
Returns
void
Deprecated
MDN Reference (opens in a new tab)
Inherited from
Event.initEvent
Defined in
node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8205
initEvent(type, bubbles, cancelable)
initEvent(
type,
bubbles?,
cancelable?): void
Parameters
Parameter | Type |
---|---|
type | string |
bubbles ? | boolean |
cancelable ? | boolean |
Returns
void
Deprecated
MDN Reference (opens in a new tab)
Inherited from
Event.initEvent
Defined in
node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.webworker.d.ts:2529
preventDefault()
preventDefault(undefined)
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 (opens in a new tab)
Returns
void
Inherited from
Event.preventDefault
Defined in
node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8211
preventDefault(undefined)
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 (opens in a new tab)
Returns
void
Inherited from
Event.preventDefault
Defined in
node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.webworker.d.ts:2535
stopImmediatePropagation()
stopImmediatePropagation(undefined)
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 (opens in a new tab)
Returns
void
Inherited from
Event.stopImmediatePropagation
Defined in
node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8217
stopImmediatePropagation(undefined)
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 (opens in a new tab)
Returns
void
Inherited from
Event.stopImmediatePropagation
Defined in
node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.webworker.d.ts:2541
stopPropagation()
stopPropagation(undefined)
stopPropagation(): void
When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
MDN Reference (opens in a new tab)
Returns
void
Inherited from
Event.stopPropagation
Defined in
node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8223
stopPropagation(undefined)
stopPropagation(): void
When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
MDN Reference (opens in a new tab)
Returns
void
Inherited from
Event.stopPropagation
Defined in
node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.webworker.d.ts:2547