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.
 

32 lines
747 B

// Code generated DO NOT EDIT
// cssmarginrule.go
package dom
import "syscall/js"
type CSSMarginRuleIFace interface {
GetCssText() string
SetCssText(string)
GetName() string
GetParentRule() CSSRule
GetParentStyleSheet() CSSStyleSheet
GetStyle() CSSStyleDeclaration
GetType() int
}
type CSSMarginRule struct {
Value
CSSRule
}
func jsValueToCSSMarginRule(val js.Value) CSSMarginRule {
return CSSMarginRule{Value: Value{Value: val}}
}
func (v Value) AsCSSMarginRule() CSSMarginRule { return CSSMarginRule{Value: v} }
func (c CSSMarginRule) GetName() string {
val := c.Get("name")
return val.String()
}
func (c CSSMarginRule) GetStyle() CSSStyleDeclaration {
val := c.Get("style")
return jsValueToCSSStyleDeclaration(val.JSValue())
}