Skip to content

UzElement

Defined in: uzumaki.d.ts:373

M extends UzEventMap = UzEventMap

new UzElement<M>(type, window): UzElement<M>

Defined in: uzumaki.d.ts:377

string

Window

UzElement<M>

Element.constructor

readonly type: string

Defined in: uzumaki.d.ts:376


readonly window: Window

Defined in: uzumaki.d.ts:89

Element.window

get firstChild(): UzNode | null

Defined in: uzumaki.d.ts:95

UzNode | null

Element.firstChild


get id(): string | null

Defined in: uzumaki.d.ts:346

string | null

set id(value): void

Defined in: uzumaki.d.ts:347

string | null

void

Element.id


get lastChild(): UzNode | null

Defined in: uzumaki.d.ts:96

UzNode | null

Element.lastChild


get nextSibling(): UzNode | null

Defined in: uzumaki.d.ts:97

UzNode | null

Element.nextSibling


get nodeId(): number

Defined in: uzumaki.d.ts:91

number

Element.nodeId


get nodeType(): number

Defined in: uzumaki.d.ts:93

number

Element.nodeType


get parentNode(): UzNode | null

Defined in: uzumaki.d.ts:94

UzNode | null

Element.parentNode


get previousSibling(): UzNode | null

Defined in: uzumaki.d.ts:98

UzNode | null

Element.previousSibling


get textContent(): string | null

Defined in: uzumaki.d.ts:99

string | null

set textContent(text): void

Defined in: uzumaki.d.ts:100

string | null

void

Element.textContent


get windowId(): number

Defined in: uzumaki.d.ts:92

number

Element.windowId

appendChild<T>(child): T

Defined in: uzumaki.d.ts:101

T extends UzNode

T

T

Element.appendChild


clearChildren(): void

Defined in: uzumaki.d.ts:108

void

Element.clearChildren


emit<K>(name, event): boolean

Defined in: uzumaki.d.ts:358

K extends string | number | symbol

K

M[K]

boolean

Element.emit


focus(): void

Defined in: uzumaki.d.ts:359

void

Element.focus


getAttribute(name): unknown

Defined in: uzumaki.d.ts:363

string

unknown

Element.getAttribute


insertBefore<T>(child, before): T

Defined in: uzumaki.d.ts:102

T extends UzNode

T

UzNode | null

T

Element.insertBefore


off<K>(name, handler, options?): void

Defined in: uzumaki.d.ts:353

K extends string | number | symbol

K

(event) => void

ListenerOptions

void

Element.off


on<K>(name, handler, options?): void

Defined in: uzumaki.d.ts:348

K extends string | number | symbol

K

(event) => void

ListenerOptions

void

Element.on


remove(): void

Defined in: uzumaki.d.ts:107

Detach this node from its parent.

void

Element.remove


removeAttribute(name): void

Defined in: uzumaki.d.ts:362

string

void

Element.removeAttribute


removeChild<T>(child): T

Defined in: uzumaki.d.ts:103

T extends UzNode

T

T

Element.removeChild


scrollIntoView(__namedParameters?): void

Defined in: uzumaki.d.ts:109

ScrollAlign

ScrollAlign

void

Element.scrollIntoView


setAttribute(name, value): void

Defined in: uzumaki.d.ts:360

string

string | number | boolean

void

Element.setAttribute


setAttributes(attributes): void

Defined in: uzumaki.d.ts:361

Record<string, number | string | boolean>

void

Element.setAttributes