Documentation ¶
Rendered for js/wasm
Index ¶
- func Alert(s string)
- type A
- type Attrs
- type Btn
- type Doc
- type 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
- type Inp
- type Node
- type NodeBase
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Elt ¶
type Elt struct{ NodeBase }
func (Elt) RemoveAttribute ¶
func (Elt) RemoveClass ¶
func (Elt) SetAttribute ¶
func (Elt) SetInnerHTML ¶
func (Elt) WithAttribute ¶
func (Elt) WithAttributeRemoved ¶
func (Elt) WithAttributes ¶
func (Elt) WithChildren ¶
func (Elt) WithClassAdded ¶
func (Elt) WithClassRemoved ¶
type EventCallbackFlag ¶
type EventCallbackFlag int
EventCallbackFlag is for backward compatibility.
const ( PreventDefault EventCallbackFlag = 1 << iota StopPropagation StopImmediatePropagation )
type NodeBase ¶
func (NodeBase) AddEventListener ¶
func (NodeBase) AppendChild ¶
func (NodeBase) FirstChild ¶
func (NodeBase) ParentNode ¶
func (NodeBase) RemoveAllChildren ¶
func (n NodeBase) RemoveAllChildren()
func (NodeBase) RemoveChild ¶
type Tbl ¶
type Tbl struct { Elt // contains filtered or unexported fields }
func (Tbl) WithHeader ¶
func (Tbl) WithHeaderClass ¶
Click to show internal directories.
Click to hide internal directories.