Documentation ¶
Index ¶
- Variables
- func Alert(color AlertColor, children ...htm.Fragment) htm.Fragment
- func Button(color ButtonColor, children ...htm.Fragment) htm.Fragment
- func ButtonA(color ButtonColor, children ...htm.Fragment) htm.Fragment
- func ButtonClass(color ButtonColor) htm.Group
- func Card(body ...htm.Fragment) htm.Fragment
- func CardTitle(text string) htm.Fragment
- func FormField(label string, name string, opts html.FormOptions, children ...htm.Fragment) htm.Fragment
- func LinkButton(target string, color ButtonColor, children ...htm.Fragment) htm.Fragment
- func Navbar(brand htm.Fragment, links ...htm.Fragment) htm.Fragment
- func NavbarBrand(target string, body htm.Fragment) htm.Fragment
- func NavbarLink(target string, body htm.Fragment) htm.Fragment
- func SubmitButton(text string, color ButtonColor, children ...htm.Fragment) htm.Fragment
- func Table(headerRow htm.Group, rows []htm.Group, children ...htm.Fragment) htm.Fragment
- type AlertColor
- type ButtonColor
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Container = htm.Class("container") ContainerFluid = htm.Class("container-fluid") Row = htm.Class("row") Column = htm.Class("col") ColumnMedium = htm.Class("col-md") Column4 = htm.Class("col-4") Column6 = htm.Class("col-6") Column8 = htm.Class("col-8") Column4Medium = htm.Class("col-md-4") Column6Medium = htm.Class("col-md-6") Column8Medium = htm.Class("col-md-8") Column4Large = htm.Class("col-lg-4") Column6Large = htm.Class("col-lg-6") Column8Large = htm.Class("col-lg-8") DisplayFlex = htm.Class("d-flex") Width100 = htm.Class("w-100") )
View Source
var ( ButtonSmall = htm.Class("btn-sm") ButtonLarge = htm.Class("btn-lg") )
View Source
var CSSSrc = html.Style(CssSrcRaw)
View Source
var ColorPickerRaw string
View Source
var ColorPickerSrc = html.JavaScript(ColorPickerRaw)
View Source
var CssSrcRaw string
View Source
var JavaScriptSrc = html.JavaScript(JavascriptSrcRaw)
View Source
var JavascriptSrcRaw string
Functions ¶
func ButtonClass ¶
func ButtonClass(color ButtonColor) htm.Group
func LinkButton ¶
func SubmitButton ¶
Types ¶
type AlertColor ¶
type AlertColor string
const ( AlertColorPrimary AlertColor = "primary" AlertColorSecondary AlertColor = "secondary" AlertColorSuccess AlertColor = "success" AlertColorDanger AlertColor = "danger" AlertColorWarning AlertColor = "warning" AlertColorInfo AlertColor = "info" AlertColorLight AlertColor = "light" AlertColorDark AlertColor = "dark" )
type ButtonColor ¶
type ButtonColor string
const ( ButtonColorPrimary ButtonColor = "btn-primary" ButtonColorSecondary ButtonColor = "btn-secondary" ButtonColorSuccess ButtonColor = "btn-success" ButtonColorDanger ButtonColor = "btn-danger" ButtonColorWarning ButtonColor = "btn-warning" ButtonColorInfo ButtonColor = "btn-info" ButtonColorLight ButtonColor = "btn-light" ButtonColorDark ButtonColor = "btn-dark" ButtonColorLink ButtonColor = "btn-link" )
Click to show internal directories.
Click to hide internal directories.