Documentation
¶
Index ¶
- Variables
- type Element
- func (element *Element) AddClass(class string) *Element
- func (element *Element) Append(e *Element) *Element
- func (element *Element) Get(p string) *js.Object
- func (element *Element) OnClick(f func())
- func (element *Element) OnInput(f func())
- func (element *Element) Prepend(e *Element) *Element
- func (element *Element) RemoveClass(class string) *Element
- func (element *Element) Set(p string, x interface{}) *Element
- func (element *Element) SetAttribute(attr string, v string) *Element
- func (element *Element) SetContent(v interface{}) *Element
- func (element *Element) ToggleClass(class string) *Element
- func (element *Element) Unwrap(wrapper *Element) *Element
- func (element *Element) Wrap(wrapper *Element, isInitialized bool) *Element
- type Renderable
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DOC = js.Global.Get("document") HEAD = getElement("head") BODY = getElement("body") )
Functions ¶
This section is empty.
Types ¶
type Element ¶
func NewElement ¶
func (*Element) RemoveClass ¶
func (*Element) SetContent ¶
func (*Element) ToggleClass ¶
type Renderable ¶
type Renderable interface{}
Click to show internal directories.
Click to hide internal directories.