Versions in this module Expand all Collapse all v0 v0.20.1 Dec 31, 2022 v0.20.0 Dec 31, 2022 v0.19.1 Nov 28, 2022 v0.19.0 Nov 27, 2022 v0.18.3 Nov 7, 2022 Changes in this version + const LoginName + func New(f template.FuncMap) (*template.Template, error) + func SetActive(a ActivableSlice, s string) + type ActivableSlice interface + GetChildren func(i int) ActivableSlice + GetMatcher func(i int) *regexp.Regexp + Len func() int + SetActive func(i int, a bool) + type Alert struct + Color Color + Header string + Text string + type AlertBars *[]Alert + type Badge struct + Color Color + Text string + type Color string + const ColorDanger + const ColorDark + const ColorInfo + const ColorLight + const ColorPrimary + const ColorSecondary + const ColorSuccess + const ColorWarning + type FormInput struct + Checked bool + Disabled bool + ID string + Label *FormLabel + Name string + Placeholder string + Required bool + Type FormInputType + Validation *FormValidation + Value string + type FormInputType string + const FormInputTypeCheckbox + const FormInputTypeFile + const FormInputTypeHidden + const FormInputTypePassword + const FormInputTypeRadio + const FormInputTypeText + type FormLabel struct + Badge *Badge + Class string + Text LocalizedString + type FormRadio struct + Disabled bool + ID string + Name string + Required bool + Selected string + Validation *FormValidation + Values map[string]LocalizedString + func (f *FormRadio) GetFormInputs() *[]FormInput + type FormTextarea struct + Disabled bool + ID string + Label *FormLabel + Name string + Required bool + Rows int + Validation *FormValidation + Value string + type FormValidation struct + Response string + Valid bool + type HeadLink struct + CrossOrigin string + HRef string + Integrity string + Rel string + Sizes string + Type string + type LocalizedString interface + Language func() language.Tag + String func() string + type Login struct + FooterExtraScript []string + FooterScripts []Script + FormError *Alert + FormInstance FormInput + HeadLinks []HeadLink + Language string + LogoHRef string + TextLogin LocalizedString + type Navbar []NavbarNode + func (n *Navbar) ActivateFromPath(path string) + func (n *Navbar) GetChildren(i int) ActivableSlice + func (n *Navbar) GetMatcher(i int) *regexp.Regexp + func (n *Navbar) Len() int + func (n *Navbar) SetActive(i int, a bool) + type NavbarNode struct + Active bool + Children Navbar + Disabled bool + Divider bool + Icon string + MatchStr *regexp.Regexp + Text string + URL string + type Pagination []PaginationNode + func MakePagination(c *PaginationConfig) Pagination + type PaginationConfig struct + Count int + DisplayCount int + HRef string + HRefCount int + MaxPagination int + Page int + type PaginationNode struct + Active bool + Disabled bool + HRef string + Icon string + Text string + type Script struct + CrossOrigin string + Integrity string + Src string + type Sidebar []SidebarNode + func (s *Sidebar) ActivateFromPath(path string) + func (s *Sidebar) GetChildren(i int) ActivableSlice + func (s *Sidebar) GetMatcher(i int) *regexp.Regexp + func (s *Sidebar) Len() int + func (s *Sidebar) SetActive(i int, a bool) + type SidebarNode struct + Active bool + Children Sidebar + Disabled bool + Icon string + Label string + Matcher *regexp.Regexp + Text string + URI string