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.
 

60 lines
1.5 KiB

// Code generated DO NOT EDIT
// storageevent.go
package dom
import "syscall/js"
type StorageEventIFace 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
GetKey() string
GetNewValue() string
GetOldValue() string
PreventDefault(args ...interface{})
GetReturnValue() bool
SetReturnValue(bool)
GetSrcElement() EventTarget
StopImmediatePropagation(args ...interface{})
StopPropagation(args ...interface{})
GetStorageArea() Storage
GetTarget() EventTarget
GetTimeStamp() DOMHighResTimeStamp
GetType() string
GetUrl() string
}
type StorageEvent struct {
Value
Event
}
func jsValueToStorageEvent(val js.Value) StorageEvent { return StorageEvent{Value: Value{Value: val}} }
func (v Value) AsStorageEvent() StorageEvent { return StorageEvent{Value: v} }
func (s StorageEvent) GetKey() string {
val := s.Get("key")
return val.String()
}
func (s StorageEvent) GetNewValue() string {
val := s.Get("newValue")
return val.String()
}
func (s StorageEvent) GetOldValue() string {
val := s.Get("oldValue")
return val.String()
}
func (s StorageEvent) GetStorageArea() Storage {
val := s.Get("storageArea")
return jsValueToStorage(val.JSValue())
}
func (s StorageEvent) GetUrl() string {
val := s.Get("url")
return val.String()
}