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.
 

41 lines
1.1 KiB

// Code generated DO NOT EDIT
// csspagerule.go
package dom
import "syscall/js"
type CSSPageRuleIFace interface {
GetCssRules() CSSRuleList
GetCssText() string
SetCssText(string)
DeleteRule(args ...interface{})
InsertRule(args ...interface{}) int
GetParentRule() CSSRule
GetParentStyleSheet() CSSStyleSheet
GetSelectorText() string
SetSelectorText(string)
GetStyle() CSSStyleDeclaration
GetType() int
}
type CSSPageRule struct {
Value
CSSGroupingRule
CSSRule
}
func JSValueToCSSPageRule(val js.Value) CSSPageRule { return CSSPageRule{Value: JSValueToValue(val)} }
func (v Value) AsCSSPageRule() CSSPageRule { return CSSPageRule{Value: v} }
func NewCSSPageRule(args ...interface{}) CSSPageRule {
return CSSPageRule{Value: JSValueToValue(js.Global().Get("CSSPageRule").New(args...))}
}
func (c CSSPageRule) GetSelectorText() string {
val := c.Get("selectorText")
return val.String()
}
func (c CSSPageRule) SetSelectorText(val string) {
c.Set("selectorText", val)
}
func (c CSSPageRule) GetStyle() CSSStyleDeclaration {
val := c.Get("style")
return JSValueToCSSStyleDeclaration(val.JSValue())
}