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.
 

52 lines
1.2 KiB

// Code generated DO NOT EDIT
// progressevent.go
package dom
import "syscall/js"
type ProgressEventIFace 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
GetLengthComputable() bool
GetLoaded() int
PreventDefault(args ...interface{})
GetReturnValue() bool
SetReturnValue(bool)
GetSrcElement() EventTarget
StopImmediatePropagation(args ...interface{})
StopPropagation(args ...interface{})
GetTarget() EventTarget
GetTimeStamp() DOMHighResTimeStamp
GetTotal() int
GetType() string
}
type ProgressEvent struct {
Value
Event
}
func JSValueToProgressEvent(val js.Value) ProgressEvent {
return ProgressEvent{Value: Value{Value: val}}
}
func (v Value) AsProgressEvent() ProgressEvent { return ProgressEvent{Value: v} }
func (p ProgressEvent) GetLengthComputable() bool {
val := p.Get("lengthComputable")
return val.Bool()
}
func (p ProgressEvent) GetLoaded() int {
val := p.Get("loaded")
return val.Int()
}
func (p ProgressEvent) GetTotal() int {
val := p.Get("total")
return val.Int()
}