Web API package for use when compling Go to WASM
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

44 lines
1.1 KiB

// Code generated DO NOT EDIT
// customevent.go
package dom
import "syscall/js"
type CustomEventIFace interface {
GetBubbles() bool
GetCancelBubble() bool
SetCancelBubble(bool)
GetCancelable() bool
GetComposed() bool
ComposedPath(args ...interface{})
GetCurrentTarget() EventTarget
GetDefaultPrevented() bool
GetDetail() Value
GetEventPhase() int
InitCustomEvent(args ...interface{})
InitEvent(args ...interface{})
GetIsTrusted() bool
PreventDefault(args ...interface{})
GetReturnValue() bool
SetReturnValue(bool)
GetSrcElement() EventTarget
StopImmediatePropagation(args ...interface{})
StopPropagation(args ...interface{})
GetTarget() EventTarget
GetTimeStamp() DOMHighResTimeStamp
GetType() string
}
type CustomEvent struct {
Value
Event
}
func jsValueToCustomEvent(val js.Value) CustomEvent { return CustomEvent{Value: Value{Value: val}} }
func (v Value) AsCustomEvent() CustomEvent { return CustomEvent{Value: v} }
func (c CustomEvent) GetDetail() Value {
val := c.Get("detail")
return val
}
func (c CustomEvent) InitCustomEvent(args ...interface{}) {
c.Call("initCustomEvent", args...)
}