dom

package
v0.0.0-...-bcaffd1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

View Source
var (
	Document = js.Global().Get("document")
	Body     = Document.Get("body")
)

Browser dom stuff

Functions

func El

func El(name string, args ...interface{}) js.Value

El create a Dom element

func System

func System(m *ecs.Manager)

System for ecs manager

Types

type Attr

type Attr map[string]string

Attr will tell El() to set attributes

type Class

type Class []string

Class will tell El() to add these into the classList

type Text

type Text string

Text will tell El() to create a text node

Jump to

Keyboard shortcuts

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