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.
 

47 lines
1.2 KiB

// Code generated DO NOT EDIT
// promiserejectionevent.go
package dom
import "syscall/js"
type PromiseRejectionEventIFace interface {
GetBubbles() bool
GetCancelBubble() bool
SetCancelBubble(bool)
GetCancelable() bool
GetComposed() bool
ComposedPath(args ...interface{})
GetCurrentTarget() EventTarget
GetDefaultPrevented() bool
GetEventPhase() int
InitEvent(args ...interface{})
GetIsTrusted() bool
PreventDefault(args ...interface{})
GetPromise()
GetReason() Value
GetReturnValue() bool
SetReturnValue(bool)
GetSrcElement() EventTarget
StopImmediatePropagation(args ...interface{})
StopPropagation(args ...interface{})
GetTarget() EventTarget
GetTimeStamp() DOMHighResTimeStamp
GetType() string
}
type PromiseRejectionEvent struct {
Value
Event
}
func jsValueToPromiseRejectionEvent(val js.Value) PromiseRejectionEvent {
return PromiseRejectionEvent{Value: Value{Value: val}}
}
func (v Value) AsPromiseRejectionEvent() PromiseRejectionEvent { return PromiseRejectionEvent{Value: v} }
func (p PromiseRejectionEvent) GetPromise() Value {
val := p.Get("promise")
return val
}
func (p PromiseRejectionEvent) GetReason() Value {
val := p.Get("reason")
return val
}