dom

package
v0.0.0-...-3fb46c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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

type Element struct {
	Value *js.Object
	// contains filtered or unexported fields
}

func NewElement

func NewElement(t string) *Element

func (*Element) AddClass

func (element *Element) AddClass(class string) *Element

func (*Element) Append

func (element *Element) Append(e *Element) *Element

func (*Element) Get

func (element *Element) Get(p string) *js.Object

func (*Element) OnClick

func (element *Element) OnClick(f func())

TODO: callback return Value

func (*Element) OnInput

func (element *Element) OnInput(f func())

TODO: callback return Value

func (*Element) Prepend

func (element *Element) Prepend(e *Element) *Element

func (*Element) RemoveClass

func (element *Element) RemoveClass(class string) *Element

func (*Element) Set

func (element *Element) Set(p string, x interface{}) *Element

func (*Element) SetAttribute

func (element *Element) SetAttribute(attr string, v string) *Element

func (*Element) SetContent

func (element *Element) SetContent(v interface{}) *Element

func (*Element) ToggleClass

func (element *Element) ToggleClass(class string) *Element

func (*Element) Unwrap

func (element *Element) Unwrap(wrapper *Element) *Element

func (*Element) Wrap

func (element *Element) Wrap(wrapper *Element, isInitialized bool) *Element

type Renderable

type Renderable interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL