dom

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap[T any](reg js.ClassBuilder[T])

func Configure

func Configure[T any](host js.ScriptEngine[T])

func NewCustomEvent

func NewCustomEvent[T any](scriptHost js.ScriptEngine[T]) *customEvent[T]

Types

type AbortController added in v0.8.0

type AbortController[T any] struct{}

func NewAbortController added in v0.8.0

func NewAbortController[T any](scriptHost js.ScriptEngine[T]) *AbortController[T]

func (AbortController[T]) Constructor added in v0.8.0

func (w AbortController[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (AbortController[T]) CreateInstance added in v0.8.0

func (w AbortController[T]) CreateInstance(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (AbortController[T]) Initialize added in v0.8.0

func (wrapper AbortController[T]) Initialize(jsClass js.Class[T])

type AbortSignal added in v0.8.0

type AbortSignal[T any] struct{}

func NewAbortSignal added in v0.8.0

func NewAbortSignal[T any](scriptHost js.ScriptEngine[T]) *AbortSignal[T]

func (AbortSignal[T]) Constructor added in v0.8.0

func (w AbortSignal[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (AbortSignal[T]) Initialize added in v0.8.0

func (wrapper AbortSignal[T]) Initialize(jsClass js.Class[T])

type Attr

type Attr[T any] struct{}

func NewAttr

func NewAttr[T any](scriptHost js.ScriptEngine[T]) *Attr[T]

func (Attr[T]) Constructor

func (w Attr[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (Attr[T]) Initialize

func (wrapper Attr[T]) Initialize(jsClass js.Class[T])

type CharacterData added in v0.8.0

type CharacterData[T any] struct {
	// contains filtered or unexported fields
}

func NewCharacterData added in v0.8.0

func NewCharacterData[T any](scriptHost js.ScriptEngine[T]) *CharacterData[T]

func (CharacterData[T]) Constructor added in v0.8.0

func (w CharacterData[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (CharacterData[T]) Initialize added in v0.8.0

func (wrapper CharacterData[T]) Initialize(jsClass js.Class[T])

type ChildNode added in v0.8.0

type ChildNode[T any] struct{}

func NewChildNode added in v0.8.0

func NewChildNode[T any](scriptHost js.ScriptEngine[T]) *ChildNode[T]

func (ChildNode[T]) Constructor added in v0.8.0

func (w ChildNode[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (ChildNode[T]) Initialize added in v0.8.0

func (wrapper ChildNode[T]) Initialize(jsClass js.Class[T])

type DOMTokenList

type DOMTokenList[T any] struct{}

func NewDOMTokenList

func NewDOMTokenList[T any](scriptHost js.ScriptEngine[T]) *DOMTokenList[T]

func (DOMTokenList[T]) Constructor

func (w DOMTokenList[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (DOMTokenList[T]) CustomInitializer

func (l DOMTokenList[T]) CustomInitializer(class js.Class[T])

func (DOMTokenList[T]) Initialize

func (wrapper DOMTokenList[T]) Initialize(jsClass js.Class[T])

type Document

type Document[T any] struct {
	// contains filtered or unexported fields
}

func NewDocument

func NewDocument[T any](scriptHost js.ScriptEngine[T]) *Document[T]

func (Document[T]) Constructor

func (w Document[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (*Document[T]) CreateInstance

func (w *Document[T]) CreateInstance(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (*Document[T]) CustomInitializer

func (w *Document[T]) CustomInitializer(class js.Class[T])

func (Document[T]) Initialize

func (wrapper Document[T]) Initialize(jsClass js.Class[T])

func (Document[T]) URL

func (w Document[T]) URL(cbCtx js.CallbackContext[T]) (js.Value[T], error)

type DocumentFragment

type DocumentFragment[T any] struct {
	// contains filtered or unexported fields
}

func NewDocumentFragment

func NewDocumentFragment[T any](scriptHost js.ScriptEngine[T]) *DocumentFragment[T]

func (DocumentFragment[T]) Constructor

func (w DocumentFragment[T]) Constructor(ctx js.CallbackContext[T]) (js.Value[T], error)

func (DocumentFragment[T]) Initialize

func (wrapper DocumentFragment[T]) Initialize(jsClass js.Class[T])

type Element

type Element[T any] struct {
	// contains filtered or unexported fields
}

func NewElement

func NewElement[T any](scriptHost js.ScriptEngine[T]) *Element[T]

func (Element[T]) Constructor

func (w Element[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (*Element[T]) CustomInitializer

func (e *Element[T]) CustomInitializer(class js.Class[T])

func (Element[T]) Initialize

func (wrapper Element[T]) Initialize(jsClass js.Class[T])

type Event

type Event[T any] struct{}

func NewEvent

func NewEvent[T any](scriptHost js.ScriptEngine[T]) *Event[T]

func (Event[T]) Constructor

func (w Event[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (Event[T]) CreateInstance

func (w Event[T]) CreateInstance(
	cbCtx js.CallbackContext[T],
	type_ string,
	o codec.EventInit,
) (js.Value[T], error)

func (Event[T]) Initialize

func (wrapper Event[T]) Initialize(jsClass js.Class[T])

type EventTarget

type EventTarget[T any] struct{}

func NewEventTarget

func NewEventTarget[T any](scriptHost js.ScriptEngine[T]) *EventTarget[T]

func (EventTarget[T]) Constructor

func (w EventTarget[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (EventTarget[T]) CreateInstance

func (w EventTarget[T]) CreateInstance(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (EventTarget[T]) Initialize

func (wrapper EventTarget[T]) Initialize(jsClass js.Class[T])

type HTMLCollection added in v0.8.0

type HTMLCollection[T any] struct{}

func NewHTMLCollection added in v0.8.0

func NewHTMLCollection[T any](scriptHost js.ScriptEngine[T]) *HTMLCollection[T]

func (HTMLCollection[T]) Constructor added in v0.8.0

func (w HTMLCollection[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (*HTMLCollection[T]) CustomInitializer added in v0.8.0

func (w *HTMLCollection[T]) CustomInitializer(class js.Class[T])

func (HTMLCollection[T]) Initialize added in v0.8.0

func (wrapper HTMLCollection[T]) Initialize(jsClass js.Class[T])

type MutationCallback

type MutationCallback[T any] struct {
	// contains filtered or unexported fields
}

func (MutationCallback[T]) HandleMutation

func (cb MutationCallback[T]) HandleMutation(recs []mutation.Record, obs *mutation.Observer)

type MutationObserver

type MutationObserver[T any] struct{}

func NewMutationObserver

func NewMutationObserver[T any](scriptHost js.ScriptEngine[T]) *MutationObserver[T]

func (MutationObserver[T]) Constructor

func (w MutationObserver[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (MutationObserver[T]) CreateInstance

func (w MutationObserver[T]) CreateInstance(
	cbCtx js.CallbackContext[T],
	cb mutation.Callback,
) (js.Value[T], error)

func (MutationObserver[T]) Initialize

func (wrapper MutationObserver[T]) Initialize(jsClass js.Class[T])

type MutationRecord

type MutationRecord[T any] struct{}

func NewMutationRecord

func NewMutationRecord[T any](scriptHost js.ScriptEngine[T]) *MutationRecord[T]

func (MutationRecord[T]) Constructor

func (w MutationRecord[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (MutationRecord[T]) Initialize

func (wrapper MutationRecord[T]) Initialize(jsClass js.Class[T])

type NamedNodeMap

type NamedNodeMap[T any] struct{}

func NewNamedNodeMap

func NewNamedNodeMap[T any](scriptHost js.ScriptEngine[T]) *NamedNodeMap[T]

func (NamedNodeMap[T]) Constructor

func (w NamedNodeMap[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (NamedNodeMap[T]) CustomInitializer

func (w NamedNodeMap[T]) CustomInitializer(class js.Class[T])

func (NamedNodeMap[T]) Initialize

func (wrapper NamedNodeMap[T]) Initialize(jsClass js.Class[T])

type Node

type Node[T any] struct{}

func NewNode

func NewNode[T any](scriptHost js.ScriptEngine[T]) *Node[T]

func (Node[T]) Constructor

func (w Node[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (Node[T]) Initialize

func (wrapper Node[T]) Initialize(jsClass js.Class[T])

type NodeList

type NodeList[T any] struct{}

func NewNodeList

func NewNodeList[T any](scriptHost js.ScriptEngine[T]) *NodeList[T]

func (NodeList[T]) Constructor

func (w NodeList[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (*NodeList[T]) CustomInitializer

func (w *NodeList[T]) CustomInitializer(class js.Class[T])

func (NodeList[T]) Initialize

func (wrapper NodeList[T]) Initialize(jsClass js.Class[T])

type NonDocumentTypeChildNode

type NonDocumentTypeChildNode[T any] struct{}

func NewNonDocumentTypeChildNode

func NewNonDocumentTypeChildNode[T any](scriptHost js.ScriptEngine[T]) *NonDocumentTypeChildNode[T]

func (NonDocumentTypeChildNode[T]) Constructor

func (w NonDocumentTypeChildNode[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (NonDocumentTypeChildNode[T]) Initialize

func (wrapper NonDocumentTypeChildNode[T]) Initialize(jsClass js.Class[T])

type ParentNode

type ParentNode[T any] struct{}

func NewParentNode

func NewParentNode[T any](scriptHost js.ScriptEngine[T]) *ParentNode[T]

func (ParentNode[T]) Constructor

func (w ParentNode[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (ParentNode[T]) Initialize

func (wrapper ParentNode[T]) Initialize(jsClass js.Class[T])

type Text added in v0.8.0

type Text[T any] struct{}

func NewText added in v0.8.0

func NewText[T any](scriptHost js.ScriptEngine[T]) *Text[T]

func (Text[T]) Constructor added in v0.8.0

func (w Text[T]) Constructor(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (Text[T]) Initialize added in v0.8.0

func (wrapper Text[T]) Initialize(jsClass js.Class[T])

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL