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.
 

58 lines
1.5 KiB

// Code generated DO NOT EDIT
// cssimportrule.go
package dom
import "syscall/js"
type CSSImportRuleIFace interface {
GetCssText() string
SetCssText(string)
GetHref() string
GetMedia() MediaList
GetParentRule() CSSRule
GetParentStyleSheet() CSSStyleSheet
GetStyleSheet() CSSStyleSheet
GetType() int
}
type CSSImportRule struct {
Value
}
func JSValueToCSSImportRule(val js.Value) CSSImportRule {
return CSSImportRule{Value: JSValueToValue(val)}
}
func (v Value) AsCSSImportRule() CSSImportRule { return CSSImportRule{Value: v} }
func NewCSSImportRule(args ...interface{}) CSSImportRule {
return CSSImportRule{Value: JSValueToValue(js.Global().Get("CSSImportRule").New(args...))}
}
func (c CSSImportRule) GetCssText() string {
val := c.Get("cssText")
return val.String()
}
func (c CSSImportRule) SetCssText(val string) {
c.Set("cssText", val)
}
func (c CSSImportRule) GetHref() string {
val := c.Get("href")
return val.String()
}
func (c CSSImportRule) GetMedia() MediaList {
val := c.Get("media")
return JSValueToMediaList(val.JSValue())
}
func (c CSSImportRule) GetParentRule() CSSRule {
val := c.Get("parentRule")
return JSValueToCSSRule(val.JSValue())
}
func (c CSSImportRule) GetParentStyleSheet() CSSStyleSheet {
val := c.Get("parentStyleSheet")
return JSValueToCSSStyleSheet(val.JSValue())
}
func (c CSSImportRule) GetStyleSheet() CSSStyleSheet {
val := c.Get("styleSheet")
return JSValueToCSSStyleSheet(val.JSValue())
}
func (c CSSImportRule) GetType() int {
val := c.Get("type")
return val.Int()
}