elementtreeconstructor

package
v0.0.0-...-6e88d74 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: GPL-3.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ElementMutator

type ElementMutator struct {
	Element *dom.Element
}

func NewElementMutator

func NewElementMutator(doc *dom.Document, name string) *ElementMutator

func NewElementMutatorFromElement

func NewElementMutatorFromElement(e *dom.Element) *ElementMutator

func NewElementMutatorFromNode

func NewElementMutatorFromNode(n *dom.Node) *ElementMutator

func NewElementMutatorNS

func NewElementMutatorNS(doc *dom.Document, ns string, name string) *ElementMutator

func (*ElementMutator) AddEventListener

func (self *ElementMutator) AddEventListener(
	event string,
	cb func(this js.Value, args []js.Value) interface{},
) *ElementMutator

func (*ElementMutator) AddListener

func (self *ElementMutator) AddListener(
	event string,
	cb func(this js.Value, args []js.Value) interface{},
) *ElementMutator

func (*ElementMutator) AppendChildren

func (self *ElementMutator) AppendChildren(children ...dom.ToNodeConvertable) *ElementMutator

func (*ElementMutator) AsElement

func (self *ElementMutator) AsElement() *dom.Element

func (*ElementMutator) AsNode

func (self *ElementMutator) AsNode() *dom.Node

func (*ElementMutator) AssignSelf

func (self *ElementMutator) AssignSelf(variable **ElementMutator) *ElementMutator

func (*ElementMutator) AssignSelfDom

func (self *ElementMutator) AssignSelfDom(variable **dom.Element) *ElementMutator

func (*ElementMutator) Call

func (self *ElementMutator) Call(property string, ret *interface{}, args ...interface{}) *ElementMutator

func (*ElementMutator) ExternalUse

func (self *ElementMutator) ExternalUse(cb func(*ElementMutator)) *ElementMutator

func (*ElementMutator) Get

func (self *ElementMutator) Get(property string) interface{}

func (*ElementMutator) GetAssign

func (self *ElementMutator) GetAssign(
	property string,
	ret *interface{},
) *ElementMutator

func (*ElementMutator) GetJsValue

func (self *ElementMutator) GetJsValue(property string) js.Value

func (*ElementMutator) Parent

func (self *ElementMutator) Parent() *ElementMutator

func (*ElementMutator) Remove

func (self *ElementMutator) Remove(children ...dom.ToNodeConvertable) *ElementMutator

func (*ElementMutator) RemoveAllChildren

func (self *ElementMutator) RemoveAllChildren() *ElementMutator

func (*ElementMutator) RemoveFromParent

func (self *ElementMutator) RemoveFromParent() *ElementMutator

func (*ElementMutator) SelfJsValue

func (self *ElementMutator) SelfJsValue() js.Value

func (*ElementMutator) Set

func (self *ElementMutator) Set(property string, value interface{}) *ElementMutator

func (*ElementMutator) SetAttribute

func (self *ElementMutator) SetAttribute(name string, value string) *ElementMutator

func (*ElementMutator) SetJsValue

func (self *ElementMutator) SetJsValue(property string, value js.Value)

func (*ElementMutator) SetStyle

func (self *ElementMutator) SetStyle(
	property string,
	value interface{},
) *ElementMutator

type ElementTreeConstructor

type ElementTreeConstructor struct {
	Document *dom.Document
}

func NewElementTreeConstructor

func NewElementTreeConstructor(document *dom.Document) *ElementTreeConstructor

func (*ElementTreeConstructor) CreateElement

func (self *ElementTreeConstructor) CreateElement(name string) *ElementMutator

func (*ElementTreeConstructor) CreateElementNS

func (self *ElementTreeConstructor) CreateElementNS(namespace *string, name string) *ElementMutator

func (*ElementTreeConstructor) CreateTextNode

func (self *ElementTreeConstructor) CreateTextNode(
	text string,
) *dom.Node

func (*ElementTreeConstructor) ReplaceChildren

func (self *ElementTreeConstructor) ReplaceChildren(new_children []dom.ToNodeConvertable)

Jump to

Keyboard shortcuts

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