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.
 

56 lines
1.3 KiB

// Code generated DO NOT EDIT
// stylesheet.go
package dom
import "syscall/js"
type StyleSheetIFace interface {
GetDisabled() bool
SetDisabled(bool)
GetHref() string
GetMedia() MediaList
GetOwnerNode()
GetParentStyleSheet() StyleSheet
GetTitle() string
GetType() string
}
type StyleSheet struct {
Value
}
func JSValueToStyleSheet(val js.Value) StyleSheet { return StyleSheet{Value: JSValueToValue(val)} }
func (v Value) AsStyleSheet() StyleSheet { return StyleSheet{Value: v} }
func NewStyleSheet(args ...interface{}) StyleSheet {
return StyleSheet{Value: JSValueToValue(js.Global().Get("StyleSheet").New(args...))}
}
func (s StyleSheet) GetDisabled() bool {
val := s.Get("disabled")
return val.Bool()
}
func (s StyleSheet) SetDisabled(val bool) {
s.Set("disabled", val)
}
func (s StyleSheet) GetHref() string {
val := s.Get("href")
return val.String()
}
func (s StyleSheet) GetMedia() MediaList {
val := s.Get("media")
return JSValueToMediaList(val.JSValue())
}
func (s StyleSheet) GetOwnerNode() Value {
val := s.Get("ownerNode")
return val
}
func (s StyleSheet) GetParentStyleSheet() StyleSheet {
val := s.Get("parentStyleSheet")
return JSValueToStyleSheet(val.JSValue())
}
func (s StyleSheet) GetTitle() string {
val := s.Get("title")
return val.String()
}
func (s StyleSheet) GetType() string {
val := s.Get("type")
return val.String()
}