htmlbuilder

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: GPL-3.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompactTag

func CompactTag(name string, params Params, children Children) *htmlTag

func Tag

func Tag(name string, params Params, children Children) *htmlTag

func Text

func Text(text string) *htmlText

Types

type Children

type Children []interface{}

func Paginator added in v1.1.31

func Paginator(pluginName, objId string, total, current int, menuAction string, menuItemFunc func(string, string, string, string, string, map[string]string) Children) Children

type El

type El interface {
	Html(int) string
}

func AwText

func AwText(p Params, text string) El

func Body

func Body(c Children) El

func BsBaseInput

func BsBaseInput(name, label, value, iType string, p Params) El

func BsCheckbox

func BsCheckbox(name, label string, checked bool) El

func BsFile added in v1.1.24

func BsFile(name, label string) El

func BsInput

func BsInput(name, label, value string) El

func BsNumber

func BsNumber(name, label string, value int) El

func BsNumberMin

func BsNumberMin(name, label string, value, min int) El

func BsPassword

func BsPassword(name, label, value string) El

func BsSelect

func BsSelect(name string, kvList [][]string) El

kvList - []string{[]string{"key", "value", "checked"}, ...}

func BsTextarea

func BsTextarea(name, label, value string, rows, cols int) El

func Div

func Div(p Params, c Children) El

func DivLine

func DivLine(p Params, c Children) El

func Form

func Form(p Params, c Children) El
func Head(c Children) El

func Hidden

func Hidden(name, value string) El

func Html

func Html(p Params, c Children) El

func Input

func Input(p Params) El

func Li

func Li(p Params, c Children) El
func Link(p Params) El

func Meta

func Meta(p Params) El

func Option

func Option(key, value string, checked bool) El

func P

func P(p Params, c Children) El

func Script

func Script(p Params, script string) El

func ScriptRemote

func ScriptRemote(p Params) El

func Select

func Select(p Params, c Children) El

func Span

func Span(p Params, c Children) El

func SpanLine

func SpanLine(p Params, c Children) El

func Submit

func Submit(name, class string) El

func Table

func Table(p Params, c Children) El

func Tbody

func Tbody(c Children) El

func Td

func Td(c Children) El

func TdNoWrap added in v1.1.51

func TdNoWrap(c Children) El

func TextArea

func TextArea(p Params, text string) El

func TextButton

func TextButton(p Params, text string) El

func Th

func Th(p Params, c Children) El

func Thead

func Thead(c Children) El

func Title

func Title(text string) El

func Tr

func Tr(c Children) El

func Ul

func Ul(p Params, c Children) El

type Params

type Params map[string]string

Jump to

Keyboard shortcuts

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