Help us shape the future of Go! Take the 2026 Go Developer Survey

grid

package module
v0.0.0-...-9becbf6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2017 License: MIT Imports: 4 Imported by: 3

README

grid

This is the port of material design lite grid components in Golang. It is specifically for use with vecty and gopherjs.

demo https://wizenerd.github.io/grid

go source for the demo https://github.com/wizenerd/ui/tree/master/grid

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cell

type Cell struct {
	vecty.Core
	Children    vecty.MarkupOrComponentOrHTML
	Mode        Mode
	Hide        bool
	Size        int
	HideMode    Mode
	Order       bool
	OrderSize   int
	OrderMode   Mode
	Stretch     bool
	Top         bool
	Middle      bool
	Bottom      bool
	Background  color.Color
	DesktopSize int
	TabletSize  int
	PhoneSIze   int
}

func (*Cell) Render

func (c *Cell) Render() *vecty.HTML

func (*Cell) Style

func (c *Cell) Style() vecty.ClassMap

type Grid

type Grid struct {
	vecty.Core
	NoSpacing bool
	Cells     []*Cell
}

func (Grid) Render

func (g Grid) Render() *vecty.HTML

type Mode

type Mode byte
const (
	Default Mode = 1 << iota
	Desktop
	Tablet
	Phone
)

func (Mode) String

func (m Mode) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL