import "github.com/vugu/vugu/domrender"
Package domrender has the rendering engine that takes virtual DOM from components and synchronizes it with the browser's DOM.
callback-manager.go doc.go renderer-js-default.go renderer-js-instructions.go renderer-js-script.go renderer-js-util.go renderer-js.go
JSRenderer implements Renderer against the browser's DOM.
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(mountPointSelector string) (*JSRenderer, error)
NewJSRenderer is an alias for New.
Deprecated: Use New instead.
func (r *JSRenderer) EventEnv() vugu.EventEnv
EventEnv returns an EventEnv that can be used for synchronizing updates.
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 (r *JSRenderer) Release()
Release calls release on any resources that this renderer allocated.
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.