Versions in this module Expand all Collapse all v0 v0.6.5 Oct 7, 2019 Changes in this version + func Alert(s string) — js/wasm + type A struct — js/wasm + func Anchor(s string) A + func (a A) WithText(s string) A + type Attrs map[string]string — js/wasm + type Btn struct — js/wasm + func Button(s string) Btn + func (b Btn) OnClick(flags EventCallbackFlag, fn func(js.Value)) js.Func + func (b Btn) WithClass(c string) Btn + type Doc struct — js/wasm + var Body js.Value + var Document Doc + func (d Doc) CreateElement(tag string) Elt + func (d Doc) GetElementById(id string) Elt + type Elt struct — js/wasm + func Div() Elt + func Element(tag string) Elt + func Form() Elt + func Label(s string) Elt + func Span(s string) Elt + func Text(s string) Elt + func (e Elt) AddClass(c string) + func (e Elt) AsAnchor() A + func (e Elt) AsButton() Btn + func (e Elt) AsInput() Inp + func (e Elt) GetClass() *string + func (e Elt) RemoveAttribute(k string) + func (e Elt) RemoveClass(c string) + func (e Elt) SetAttribute(k, v string) + func (e Elt) SetClass(c string) + func (e Elt) SetInnerHTML(s string) + func (e Elt) SetRole(r string) + func (e Elt) WithAttribute(k, v string) Elt + func (e Elt) WithAttributeRemoved(k string) Elt + func (e Elt) WithAttributes(attrs Attrs) Elt + func (e Elt) WithChildren(ns ...Node) Elt + func (e Elt) WithClass(c string) Elt + func (e Elt) WithClassAdded(c string) Elt + func (e Elt) WithClassRemoved(c string) Elt + func (e Elt) WithRole(r string) Elt + type EventCallbackFlag int — js/wasm + const PreventDefault + const StopImmediatePropagation + const StopPropagation + type Inp struct — js/wasm + func Input(typ string) Inp + func TextInput() Inp + func (i Inp) OnKeyUp(flags EventCallbackFlag, fn func(js.Value)) js.Func + func (i Inp) Value() string + func (i Inp) WithClass(c string) Inp + func (i Inp) WithPlaceholder(p string) Inp + func (i Inp) WithValue(val string) Inp + type Node interface — js/wasm + AppendChild func(c Node) + JSValue func() js.Value + RemoveChild func(c Node) Node + type NodeBase struct — js/wasm + func (n NodeBase) AddEventListener(flags EventCallbackFlag, typ string, fn func(js.Value)) js.Func + func (n NodeBase) AppendChild(c Node) + func (n NodeBase) AsElement() Elt + func (n NodeBase) FirstChild() Node + func (n NodeBase) JSValue() js.Value + func (n NodeBase) ParentNode() Node + func (n NodeBase) Remove() + func (n NodeBase) RemoveAllChildren() + func (n NodeBase) RemoveChild(c Node) Node + type Tbl struct — js/wasm + func Table() Tbl + func (t Tbl) AppendRow(ns ...Node) Elt + func (t Tbl) WithClass(c string) Tbl + func (t Tbl) WithHeader(ns ...Node) Tbl + func (t Tbl) WithHeaderClass(class string) Tbl