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.
 

95 lines
2.9 KiB

// Code generated DO NOT EDIT
// xmlhttprequestupload.go
package dom
import "syscall/js"
type XMLHttpRequestUploadIFace interface {
AddEventListener(args ...interface{})
DispatchEvent(args ...interface{}) bool
GetOnabort() EventHandler
SetOnabort(EventHandler)
GetOnerror() EventHandler
SetOnerror(EventHandler)
GetOnload() EventHandler
SetOnload(EventHandler)
GetOnloadend() EventHandler
SetOnloadend(EventHandler)
GetOnloadstart() EventHandler
SetOnloadstart(EventHandler)
GetOnprogress() EventHandler
SetOnprogress(EventHandler)
GetOntimeout() EventHandler
SetOntimeout(EventHandler)
RemoveEventListener(args ...interface{})
}
type XMLHttpRequestUpload struct {
Value
}
func JSValueToXMLHttpRequestUpload(val js.Value) XMLHttpRequestUpload {
return XMLHttpRequestUpload{Value: JSValueToValue(val)}
}
func (v Value) AsXMLHttpRequestUpload() XMLHttpRequestUpload { return XMLHttpRequestUpload{Value: v} }
func NewXMLHttpRequestUpload(args ...interface{}) XMLHttpRequestUpload {
return XMLHttpRequestUpload{Value: JSValueToValue(js.Global().Get("XMLHttpRequestUpload").New(args...))}
}
func (x XMLHttpRequestUpload) AddEventListener(args ...interface{}) {
x.Call("addEventListener", args...)
}
func (x XMLHttpRequestUpload) DispatchEvent(args ...interface{}) bool {
val := x.Call("dispatchEvent", args...)
return val.Bool()
}
func (x XMLHttpRequestUpload) GetOnabort() EventHandler {
val := x.Get("onabort")
return JSValueToEventHandler(val.JSValue())
}
func (x XMLHttpRequestUpload) SetOnabort(val EventHandler) {
x.Set("onabort", val)
}
func (x XMLHttpRequestUpload) GetOnerror() EventHandler {
val := x.Get("onerror")
return JSValueToEventHandler(val.JSValue())
}
func (x XMLHttpRequestUpload) SetOnerror(val EventHandler) {
x.Set("onerror", val)
}
func (x XMLHttpRequestUpload) GetOnload() EventHandler {
val := x.Get("onload")
return JSValueToEventHandler(val.JSValue())
}
func (x XMLHttpRequestUpload) SetOnload(val EventHandler) {
x.Set("onload", val)
}
func (x XMLHttpRequestUpload) GetOnloadend() EventHandler {
val := x.Get("onloadend")
return JSValueToEventHandler(val.JSValue())
}
func (x XMLHttpRequestUpload) SetOnloadend(val EventHandler) {
x.Set("onloadend", val)
}
func (x XMLHttpRequestUpload) GetOnloadstart() EventHandler {
val := x.Get("onloadstart")
return JSValueToEventHandler(val.JSValue())
}
func (x XMLHttpRequestUpload) SetOnloadstart(val EventHandler) {
x.Set("onloadstart", val)
}
func (x XMLHttpRequestUpload) GetOnprogress() EventHandler {
val := x.Get("onprogress")
return JSValueToEventHandler(val.JSValue())
}
func (x XMLHttpRequestUpload) SetOnprogress(val EventHandler) {
x.Set("onprogress", val)
}
func (x XMLHttpRequestUpload) GetOntimeout() EventHandler {
val := x.Get("ontimeout")
return JSValueToEventHandler(val.JSValue())
}
func (x XMLHttpRequestUpload) SetOntimeout(val EventHandler) {
x.Set("ontimeout", val)
}
func (x XMLHttpRequestUpload) RemoveEventListener(args ...interface{}) {
x.Call("removeEventListener", args...)
}