bootstrap

package
v0.0.0-...-7289f46 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormGroup

func FormGroup(opts render.TagOpts) render.TagBuilder

FormGroup returns a TagBuilder for building up a "class":"form-group" div

func Input

func Input(inputType, id, placeholder string, opts render.TagOpts) render.TagBuilder

Input creates a new <input> tag

func Label

func Label(forID, text string, opts render.TagOpts) render.TagBuilder

Label creates a new <label> tag

func TextArea

func TextArea(opts render.TagOpts) render.TagBuilder

TextArea creates a new <textarea> tag

Types

type CardBuilder

type CardBuilder struct {
	render.Elt
	// contains filtered or unexported fields
}

func Card

func Card(title string, text string, otherElts ...render.Elt) *CardBuilder

Card returns a render.Elt that holds a bootstrap card.

See: https://getbootstrap.com/docs/4.3/components/card/

func (CardBuilder) ToHTML

func (c CardBuilder) ToHTML() (io.Reader, error)

type Col

type Col struct {
	// contains filtered or unexported fields
}

func NewCol

func NewCol(opts render.TagOpts) Col

func (Col) WithChild

func (c Col) WithChild(e render.Elt) Col

func (Col) WithChildren

func (c Col) WithChildren(elts ...render.Elt) Col

type Grid

type Grid struct {
	// contains filtered or unexported fields
}

func NewGrid

func NewGrid(opts render.TagOpts) Grid

func (Grid) ToHTML

func (g Grid) ToHTML() (io.Reader, error)

func (Grid) WithRow

func (g Grid) WithRow(r Row) Grid

func (Grid) WithRows

func (g Grid) WithRows(r ...Row) Grid

type Row

type Row struct {
	// contains filtered or unexported fields
}

func NewRow

func NewRow(opts render.TagOpts, cols ...Col) Row

func (Row) ToHTML

func (r Row) ToHTML() (io.Reader, error)

func (Row) WithCol

func (r Row) WithCol(c Col) Row

Jump to

Keyboard shortcuts

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