vugu: Index | Files

package domrender

import ""

Package domrender has the rendering engine that takes virtual DOM from components and synchronizes it with the browser's DOM.


Package Files

callback-manager.go doc.go renderer-js-default.go renderer-js-instructions.go renderer-js-script.go renderer-js-util.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 New Uses

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

New 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 NewJSRenderer Uses

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

NewJSRenderer is an alias for New.

Deprecated: Use New instead.

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 12 packages (graph) and is imported by 1 packages. Updated 2020-09-16. Refresh now. Tools for package owners.