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.
 

47 lines
1.2 KiB

// Code generated DO NOT EDIT
// cssstylesheet.go
package dom
import "syscall/js"
type CSSStyleSheetIFace interface {
GetCssRules() CSSRuleList
DeleteRule(args ...interface{})
GetDisabled() bool
SetDisabled(bool)
GetHref() string
InsertRule(args ...interface{}) int
GetMedia() MediaList
GetOwnerNode()
GetOwnerRule() CSSRule
GetParentStyleSheet() StyleSheet
GetTitle() string
GetType() string
}
type CSSStyleSheet struct {
Value
StyleSheet
}
func JSValueToCSSStyleSheet(val js.Value) CSSStyleSheet {
return CSSStyleSheet{Value: JSValueToValue(val)}
}
func (v Value) AsCSSStyleSheet() CSSStyleSheet { return CSSStyleSheet{Value: v} }
func NewCSSStyleSheet(args ...interface{}) CSSStyleSheet {
return CSSStyleSheet{Value: JSValueToValue(js.Global().Get("CSSStyleSheet").New(args...))}
}
func (c CSSStyleSheet) GetCssRules() CSSRuleList {
val := c.Get("cssRules")
return JSValueToCSSRuleList(val.JSValue())
}
func (c CSSStyleSheet) DeleteRule(args ...interface{}) {
c.Call("deleteRule", args...)
}
func (c CSSStyleSheet) InsertRule(args ...interface{}) int {
val := c.Call("insertRule", args...)
return val.Int()
}
func (c CSSStyleSheet) GetOwnerRule() CSSRule {
val := c.Get("ownerRule")
return JSValueToCSSRule(val.JSValue())
}