layout

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package layout implements the markup defined in

https://github.com/material-components/material-components-web/tree/master/packages/mdc-layout-grid

See ExampleGrid for usage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cell

func Cell() app.HTMLDiv

Cell is the mandatory layout grid cell with class mdc-layout-grid__cell. Use CellModified to specify alignment and span width.

func CellModified

func CellModified(align string, span int) app.HTMLDiv

CellModified is the mandatory innermost layout div with class mdc-layout-grid__cell. It allows optional classes for alignment ( top, middle, bottom ) and span width ( 1-12 ). If align and span values are out of range, no additional classes are added.

func CellWide

func CellWide() app.HTMLDiv

CellWide is equivalent to CellModified("middle", 12)

func Grid

func Grid() app.HTMLDiv

Grid is the mandatory layout grid element with class mdc-layout-grid.

func Inner

func Inner() app.HTMLDiv

Inner is the mandatory wrapping grid cell with class mdc-layout-grid__inner.

Types

This section is empty.

Jump to

Keyboard shortcuts

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