Documentation ¶
Index ¶
- type ElementMutator
- func (self *ElementMutator) AddEventListener(event string, cb func(this js.Value, args []js.Value) interface{}) *ElementMutator
- func (self *ElementMutator) AddListener(event string, cb func(this js.Value, args []js.Value) interface{}) *ElementMutator
- func (self *ElementMutator) AppendChildren(children ...dom.ToNodeConvertable) *ElementMutator
- func (self *ElementMutator) AsElement() *dom.Element
- func (self *ElementMutator) AsNode() *dom.Node
- func (self *ElementMutator) AssignSelf(variable **ElementMutator) *ElementMutator
- func (self *ElementMutator) AssignSelfDom(variable **dom.Element) *ElementMutator
- func (self *ElementMutator) Call(property string, ret *interface{}, args ...interface{}) *ElementMutator
- func (self *ElementMutator) ExternalUse(cb func(*ElementMutator)) *ElementMutator
- func (self *ElementMutator) Get(property string) interface{}
- func (self *ElementMutator) GetAssign(property string, ret *interface{}) *ElementMutator
- func (self *ElementMutator) GetJsValue(property string) js.Value
- func (self *ElementMutator) Parent() *ElementMutator
- func (self *ElementMutator) Remove(children ...dom.ToNodeConvertable) *ElementMutator
- func (self *ElementMutator) RemoveAllChildren() *ElementMutator
- func (self *ElementMutator) RemoveFromParent() *ElementMutator
- func (self *ElementMutator) SelfJsValue() js.Value
- func (self *ElementMutator) Set(property string, value interface{}) *ElementMutator
- func (self *ElementMutator) SetAttribute(name string, value string) *ElementMutator
- func (self *ElementMutator) SetJsValue(property string, value js.Value)
- func (self *ElementMutator) SetStyle(property string, value interface{}) *ElementMutator
- type ElementTreeConstructor
- func (self *ElementTreeConstructor) CreateElement(name string) *ElementMutator
- func (self *ElementTreeConstructor) CreateElementNS(namespace *string, name string) *ElementMutator
- func (self *ElementTreeConstructor) CreateTextNode(text string) *dom.Node
- func (self *ElementTreeConstructor) ReplaceChildren(new_children []dom.ToNodeConvertable)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElementMutator ¶
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.