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.
 

35 lines
697 B

// DO NOT EDIT - generated file
package dom
import "syscall/js"
type Event struct {
js.Value
}
func (e *Event) JSValue() js.Value { return e.Value }
func (e *Event) PreventDefault() {
e.Call("preventDefault")
}
func (e *Event) StopPropagation() {
e.Call("stopPropagation")
}
func (e *Event) StopImmediatePropagation() {
e.Call("stopImmediatePropagation")
}
func (e *Event) GetCurrentTarget() js.Value {
val := e.Get("currentTarget")
return val
}
func (e *Event) GetTarget() js.Value {
val := e.Get("target")
return val
}
func (e *Event) GetType() string {
val := e.Get("type")
return val.String()
}
func (e *Event) GetSrcElement() js.Value {
val := e.Get("srcElement")
return val
}