dom

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Body = BodyObject{Element{Document.Call("getElementsByTagName", "body").Index(0)}}
View Source
var Document = Global.Get("document")
View Source
var Global = js.Global()

Functions

This section is empty.

Types

type BodyObject

type BodyObject struct {
	Element
}

type Element

type Element struct {
	Self js.Value
}

func NewElement

func NewElement(tagName string) Element

func (Element) AppendChild

func (e Element) AppendChild(child Element)

func (Element) ElementsByTagName

func (e Element) ElementsByTagName(tagName string) Element

func (Element) GetElementsByTagName

func (e Element) GetElementsByTagName(tagName string) Element

func (Element) SetInnerHTML

func (e Element) SetInnerHTML(text string)

func (Element) SetInnerText

func (e Element) SetInnerText(text string)

type Input

type Input struct {
	Element
}

func NewInput

func NewInput() Input

func (Input) SetOnInput

func (e Input) SetOnInput(f func(this Input, args []js.Value) interface{})

func (Input) Value

func (e Input) Value() string

type Span

type Span struct {
	Element
}

func NewSpan

func NewSpan() Span

Jump to

Keyboard shortcuts

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