Documentation
¶
Overview ¶
Package js offers API that works with both GopherJS and Wasm.
The API emulates syscall/js API, so please refer syscall/js API document (https://golang.org/pkg/syscall/js/) for more detail.
Index ¶
Constants ¶
View Source
const ( TypeUndefined = js.TypeUndefined TypeNull = js.TypeNull TypeBoolean = js.TypeBoolean TypeNumber = js.TypeNumber TypeString = js.TypeString TypeSymbol = js.TypeSymbol TypeObject = js.TypeObject TypeFunction = js.TypeFunction )
Variables ¶
This section is empty.
Functions ¶
func GetInternalObject ¶
func GetInternalObject(v Value) interface{}
Types ¶
type Callback ¶
type Callback = Func
Callback is for backward compatibility. Use Func instead.
func NewCallback ¶
NewCallback is for backward compatibility. Use FuncOf instead.
func NewEventCallback ¶
func NewEventCallback(flags EventCallbackFlag, fn func(event Value)) Callback
NewEventCallback is for backward compatibility. Use FuncOf instead.
type EventCallbackFlag ¶
type EventCallbackFlag int
EventCallbackFlag is for backward compatibility.
const ( PreventDefault EventCallbackFlag = 1 << iota StopPropagation StopImmediatePropagation )
type TypedArray ¶
type TypedArray = js.TypedArray
func TypedArrayOf ¶
func TypedArrayOf(slice interface{}) TypedArray
Click to show internal directories.
Click to hide internal directories.