Documentation ¶
Index ¶
- func ChecksRender(args ...any) (any, error)
- func Icon(icon string, clss ...string) template.HTML
- func PagerRender(args ...any) (any, error)
- func RadiosRender(args ...any) (any, error)
- func SelectRender(args ...any) (any, error)
- func TagClose(sb *strings.Builder, name string)
- func TagRender(tr TagRenderer, args ...any) (any, error)
- func TagSetAttrs(tr TagRenderer, attrs Attrs, args []any) error
- func TagStart(sb *strings.Builder, name string, as ...Attrs)
- func TagStartClose(sb *strings.Builder, name string, as ...Attrs)
- func TagWriteAttrs(sb *strings.Builder, a Attrs)
- type Attrs
- func (a Attrs) Add(k string, v string)
- func (a Attrs) Class(v string)
- func (a Attrs) Classes(cs ...string)
- func (a Attrs) Data(k string, v string)
- func (a Attrs) Get(k string) string
- func (a Attrs) ID(v string)
- func (a Attrs) Name(v string)
- func (a Attrs) Set(k string, v string)
- func (a Attrs) Style(v string)
- func (a Attrs) Styles(ss ...string)
- type ChecksRenderer
- type List
- type PageRenderer
- type Pager
- type RadiosRenderer
- type SelectRenderer
- type TagRenderer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChecksRender ¶
func PagerRender ¶
func RadiosRender ¶
func SelectRender ¶
func TagSetAttrs ¶
func TagSetAttrs(tr TagRenderer, attrs Attrs, args []any) error
func TagWriteAttrs ¶
Types ¶
type ChecksRenderer ¶
func (*ChecksRenderer) Render ¶
func (cr *ChecksRenderer) Render(sb *strings.Builder, args ...any) error
func (*ChecksRenderer) SetList ¶ added in v1.0.21
func (cr *ChecksRenderer) SetList(list any)
func (*ChecksRenderer) SetValue ¶ added in v1.0.15
func (cr *ChecksRenderer) SetValue(val string)
func (*ChecksRenderer) TagName ¶
func (cr *ChecksRenderer) TagName() string
type PageRenderer ¶
type PageRenderer struct { Pager Locale string LinkSize int // page link size LinkHref string // link href url // Style: // <: <ul> // p: previous page (hidden) // P: previous page (disabled) // n: next page (hidden) // N: next page (disabled) // f: first page (hidden) // F: first page (disabled) // l: last page (hidden) // L: last page (disabled) // 1: #1 first page (depends on '#') // #: page number links // x: #x last page (depends on '#') // i: pager info label // s: limit size select // >: </ul> // I: pager info text // S: limit size select Style string }
func (*PageRenderer) Render ¶
func (pr *PageRenderer) Render(sb *strings.Builder, args ...any) error
func (*PageRenderer) TagName ¶
func (pr *PageRenderer) TagName() string
type RadiosRenderer ¶
func (*RadiosRenderer) Render ¶
func (rr *RadiosRenderer) Render(sb *strings.Builder, args ...any) error
func (*RadiosRenderer) SetList ¶ added in v1.0.21
func (rr *RadiosRenderer) SetList(list any)
func (*RadiosRenderer) TagName ¶
func (rr *RadiosRenderer) TagName() string
type SelectRenderer ¶
type SelectRenderer struct { Name string List List Empty string Values []string Disabled bool Multiple bool }
func (*SelectRenderer) Render ¶
func (sr *SelectRenderer) Render(sb *strings.Builder, args ...any) error
func (*SelectRenderer) SetList ¶ added in v1.0.21
func (sr *SelectRenderer) SetList(list any)
func (*SelectRenderer) SetValue ¶ added in v1.0.15
func (sr *SelectRenderer) SetValue(val string)
func (*SelectRenderer) TagName ¶
func (sr *SelectRenderer) TagName() string
Click to show internal directories.
Click to hide internal directories.