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.
 

34 lines
875 B

// Code generated DO NOT EDIT
// cssstylerule.go
package dom
import "syscall/js"
type CSSStyleRuleIFace interface {
GetCssText() string
SetCssText(string)
GetParentRule() CSSRule
GetParentStyleSheet() CSSStyleSheet
GetSelectorText() string
SetSelectorText(string)
GetStyle() CSSStyleDeclaration
GetType() int
}
type CSSStyleRule struct {
Value
CSSRule
}
func jsValueToCSSStyleRule(val js.Value) CSSStyleRule { return CSSStyleRule{Value: Value{Value: val}} }
func (v Value) AsCSSStyleRule() CSSStyleRule { return CSSStyleRule{Value: v} }
func (c CSSStyleRule) GetSelectorText() string {
val := c.Get("selectorText")
return val.String()
}
func (c CSSStyleRule) SetSelectorText(val string) {
c.Set("selectorText", val)
}
func (c CSSStyleRule) GetStyle() CSSStyleDeclaration {
val := c.Get("style")
return jsValueToCSSStyleDeclaration(val.JSValue())
}