Documentation ¶
Index ¶
- func Bind(v interface{}, object js.Value) error
- func BindFunction(tag string, fptr reflect.Type, object js.Value, value interface{}, index int) error
- func BindValue(v interface{}, object js.Value) error
- func Functions(v interface{}) []reflect.Method
- func IsFunction(tag string) (string, bool)
- func IsProperty(tag string) (string, bool)
- func IsStructurePtr(v interface{}) error
- func Keys(obj js.Value) []string
- func MatchInputs(method reflect.Method, inputs []reflect.Type) error
- func Members(v interface{}) []reflect.StructField
- type Document
- type Global
- type HtmlCollection
- type HtmlElement
- type Location
- type Node
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindFunction ¶
func IsFunction ¶
func IsProperty ¶
func IsStructurePtr ¶
func IsStructurePtr(v interface{}) error
func Members ¶
func Members(v interface{}) []reflect.StructField
Types ¶
type Document ¶
type Document struct { Node Body func() *HtmlElement `wasm:"body"` CreateElement func(string) *HtmlElement `wasm:"createElement()"` }
type HtmlCollection ¶
type HtmlCollection struct { Node Length func() int `wasm:"length"` Item func(int) *HtmlElement `wasm:"item"` NamedItem func(int) *HtmlElement `wasm:"namedItem"` }
func (HtmlCollection) JSValue ¶
func (obj HtmlCollection) JSValue() js.Value
type HtmlElement ¶
type HtmlElement struct { Node InnerHtml func() string `wasm:"innerHTML"` SetInnerHtml func(string) `wasm:"innerHTML"` AppendChild func(*HtmlElement) `wasm:"appendChild()"` }
func (HtmlElement) JSValue ¶
func (obj HtmlElement) JSValue() js.Value
type Location ¶
type Location struct { Node HRef func() string `wasm:"href"` Origin func() string `wasm:"origin"` Protocol func() string `wasm:"protocol"` Host func() string `wasm:"host"` Hostname func() string `wasm:"hostname"` Port func() string `wasm:"port"` Pathname func() string `wasm:"pathname"` Search func() string `wasm:"search"` Hash func() string `wasm:"hash"` Assign func(string) `wasm:"assign()"` Replace func(string) `wasm:"replace()"` Reload func(bool) `wasm:"reload()"` }
Click to show internal directories.
Click to hide internal directories.