Versions in this module Expand all Collapse all v1 v1.0.0 Dec 17, 2021 Changes in this version + func AppendChild(child interface{}) + func RemoveChild(child *Element) + type Element struct + func CreateElement(tag string) *Element + func ElementOf(v js.Value) *Element + func S(selector string) *Element + func (e *Element) AddClass(names ...string) *Element + func (e *Element) Append(child ...interface{}) *Element + func (e *Element) Attr(name string) string + func (e *Element) Call(name string, args ...interface{}) js.Value + func (e *Element) Clone() *Element + func (e *Element) Data(key, value string) *Element + func (e *Element) Empty() *Element + func (e *Element) Free() + func (e *Element) HTML() string + func (e *Element) HasClass(name string) bool + func (e *Element) On(event string, fn func(*Element, *js.Event)) *Element + func (e *Element) OnChange(fn func(*Element, *js.Event)) *Element + func (e *Element) OnClick(fn func(*Element, *js.Event)) *Element + func (e *Element) Prepend(child interface{}) *Element + func (e *Element) Prop(name string) js.Value + func (e *Element) RemoveAttr(name string) *Element + func (e *Element) RemoveChild(elm *Element) *Element + func (e *Element) RemoveClass(names ...string) *Element + func (e *Element) ReplaceClass(oldName, newName string) *Element + func (e *Element) S(selector string) *Element + func (e *Element) SS(selector string) ElementList + func (e *Element) SetAttr(name, value string) *Element + func (e *Element) SetHTML(html string) *Element + func (e *Element) SetProp(name string, val interface{}) *Element + func (e *Element) SetText(text string) *Element + func (e *Element) SetVal(val interface{}) *Element + func (e *Element) String() string + func (e *Element) TagName() string + func (e *Element) Text() string + func (e *Element) ToggleClass(name string) *Element + func (e *Element) Truthy() bool + func (e *Element) Val() string + type ElementList []*Element + func ElementListOf(v js.Value) ElementList + func SS(selector string) ElementList + func (nl ElementList) AddClass(names ...string) ElementList + func (nl ElementList) Append(x ...*Element) ElementList + func (nl ElementList) AppendList(other ElementList) ElementList + func (nl ElementList) Attr(name string) []string + func (nl ElementList) Foreach(fn func(idx int, v *Element)) + func (nl ElementList) HasClass(name string) ElementList + func (nl ElementList) Length() int + func (nl ElementList) Prop(name string) []js.Value + func (nl ElementList) RemoveClass(names ...string) ElementList + func (nl ElementList) ReplaceClass(oldName, newName string) ElementList + func (nl ElementList) SetAttr(name, value string) ElementList + func (nl ElementList) SetProp(name string, flag bool) ElementList + func (nl ElementList) SetVal(val interface{}) ElementList + func (nl ElementList) TagName() []string + func (nl ElementList) ToggleClass(name string) ElementList + func (nl ElementList) Val() []string