perkeep/vendor/myitcv.io/react/gen_css_cssGen.go

56 lines
1.1 KiB
Go

// Code generated by cssGen. DO NOT EDIT.
package react
import "github.com/gopherjs/gopherjs/js"
// CSS defines CSS attributes for HTML components. Largely based on
// https://developer.mozilla.org/en-US/docs/Web/CSS/Reference
//
type CSS struct {
o *js.Object
FontSize string
FontStyle string
Height string
Left string
MarginTop string
MaxHeight string
MinHeight string
Overflow string
OverflowY string
Position string
Resize string
Top string
Width string
ZIndex string
}
// TODO: until we have a resolution on
// https://github.com/gopherjs/gopherjs/issues/236 we define hack() below
func (c *CSS) hack() *CSS {
if c == nil {
return nil
}
o := object.New()
o.Set("fontSize", c.FontSize)
o.Set("fontStyle", c.FontStyle)
o.Set("height", c.Height)
o.Set("left", c.Left)
o.Set("marginTop", c.MarginTop)
o.Set("maxHeight", c.MaxHeight)
o.Set("minHeight", c.MinHeight)
o.Set("overflow", c.Overflow)
o.Set("overflowY", c.OverflowY)
o.Set("position", c.Position)
o.Set("resize", c.Resize)
o.Set("top", c.Top)
o.Set("width", c.Width)
o.Set("zIndex", c.ZIndex)
return &CSS{o: o}
}