Documentation ¶
Index ¶
- Variables
- func GetInternalObject(v Value) interface{}
- type Callback
- type Error
- type EventCallbackFlag
- type Value
- func (v Value) Bool() bool
- func (v Value) Call(m string, args ...interface{}) Value
- func (v Value) Float() float64
- func (v Value) Get(p string) Value
- func (v Value) Index(i int) Value
- func (v Value) Int() int
- func (v Value) Invoke(args ...interface{}) Value
- func (v Value) Length() int
- func (v Value) New(args ...interface{}) Value
- func (v Value) Set(p string, x interface{})
- func (v Value) SetIndex(i int, x interface{})
- func (v Value) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Undefined = Value{/* contains filtered or unexported fields */} Null = Value{/* contains filtered or unexported fields */} Global = Value{/* contains filtered or unexported fields */} )
Functions ¶
func GetInternalObject ¶
func GetInternalObject(v Value) interface{}
Types ¶
type Callback ¶
type Callback struct {
// contains filtered or unexported fields
}
func NewCallback ¶
func NewEventCallback ¶
func NewEventCallback(flags EventCallbackFlag, fn func(event Value)) Callback
type EventCallbackFlag ¶
type EventCallbackFlag int
const ( PreventDefault EventCallbackFlag = 1 << iota StopPropagation StopImmediatePropagation )
Click to show internal directories.
Click to hide internal directories.