dom

package
v0.0.0-...-bfb1546 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PreventDefault           = js.PreventDefault
	StopPropagation          = js.StopPropagation
	StopImmediatePropagation = js.StopImmediatePropagation
)

Variables

View Source
var (
	Window   = js.Global().Get("window")
	Document = js.Global().Get("document")
)

Functions

func Patch

func Patch(oldNode *vdom.VNode, newNode *vdom.VNode, container js.Value) *vdom.VNode

func QuerySelector

func QuerySelector(selector string) js.Value

func Render

func Render(node *vdom.VNode, container js.Value)

one time render

Types

type Callback

type Callback = js.Callback

func NewCallback

func NewCallback(f func([]Value)) Callback

func NewEventCallback

func NewEventCallback(flags EventCallbackFlag, fn func(event Value)) Callback

type EventCallbackFlag

type EventCallbackFlag = js.EventCallbackFlag

type Value

type Value = js.Value

Jump to

Keyboard shortcuts

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