web

package
v0.0.0-...-454a2de Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: MIT Imports: 7 Imported by: 2

README

WEB - wasm/gopherjs backend for gas framework

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateElement

func CreateElement(el interface{}) (dom.Node, error)

CreateElement render element

func Init

func Init(c *gas.Component, startPoint string) error

Init initialize gas application

func InitCustom

func InitCustom(c *gas.C, startPoint string, newRenderer bool) error

func KeepAlive

func KeepAlive()

KeepAlive keep alive application

func ToGasEvent

func ToGasEvent(domEvent dom.Event, isCheckbox bool) gas.Event

ToGasEvent convert dom.Event to gas.Event

func ToUniteObject

func ToUniteObject(e dom.Value) gas.Object

ToUniteObject convert dom.Value to gas.Object

Types

type BackEnd

type BackEnd struct {
	// contains filtered or unexported fields
}

BackEnd backend for core library

func (*BackEnd) ChildNodes

func (w *BackEnd) ChildNodes(el interface{}) []interface{}

ChildNodes return *dom.Element child nodes

func (*BackEnd) ConsoleError

func (w *BackEnd) ConsoleError(a ...interface{})

ConsoleError console.error(a)

func (*BackEnd) ConsoleLog

func (w *BackEnd) ConsoleLog(a ...interface{})

ConsoleLog console.log(a)

func (*BackEnd) ExecTask

func (w *BackEnd) ExecTask(task *gas.RenderTask) error

ExecTask execute render task

func (*BackEnd) ExecTasks

func (w *BackEnd) ExecTasks(tasks []*gas.RenderTask)

ExecTasks execute render tasks

func (*BackEnd) Executor

func (w *BackEnd) Executor()

func (*BackEnd) GetElement

func (w *BackEnd) GetElement(c *gas.Element) interface{}

GetElement get dom.Element by element

Jump to

Keyboard shortcuts

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