vugu: github.com/vugu/vugu/domrender Index | Files

package domrender

import "github.com/vugu/vugu/domrender"

Index

Package Files

renderer-js-default.go renderer-js-instructions.go renderer-js-script.go renderer-js.go

type JSRenderer Uses

type JSRenderer struct {
    MountPointSelector string
    // contains filtered or unexported fields
}

JSRenderer implements Renderer against the browser's DOM.

func NewJSRenderer Uses

func NewJSRenderer(mountPointSelector string) (*JSRenderer, error)

NewJSRenderer will create a new JSRenderer with the speicifc mount point selector. If an empty string is passed then the root component should include a top level <html> tag and the entire page will be rendered.

func (*JSRenderer) EventEnv Uses

func (r *JSRenderer) EventEnv() vugu.EventEnv

EventEnv returns an EventEnv that can be used for synchronizing updates.

func (*JSRenderer) EventWait Uses

func (r *JSRenderer) EventWait() (ok bool)

EventWait blocks until an event has occurred which causes a re-render. It returns true if the render loop should continue or false if it should exit.

func (*JSRenderer) Release Uses

func (r *JSRenderer) Release()

Release calls release on any resources that this renderer allocated.

func (*JSRenderer) Render Uses

func (r *JSRenderer) Render(buildResults *vugu.BuildResults) error

Render is a render function.

Package domrender imports 11 packages (graph) and is imported by 1 packages. Updated 2019-12-09. Refresh now. Tools for package owners.