Versions in this module Expand all Collapse all v1 v1.3.3 Sep 28, 2022 v1.3.2 Sep 21, 2022 Changes in this version + const CompAlert + const CompBox + const CompButton + const CompCol + const CompDataTable + const CompForm + const CompImage + const CompLabel + const CompLink + const CompPaginator + const CompPopup + const CompRow + const CompTable + const CompTabs + const CompTree + const CompTreeView + var DefaultFuncMap = template.FuncMap + var DefaultThemeNames = []string + func Add(name string, temp Template) + func AddComp(comp Component) + func AddFromPlugin(name string, mod string) + func AddLoginComp(comp Component) + func CSS(s string) template.CSS + func CheckRequirements() (bool, bool) + func CheckThemeRequirements() bool + func Execute(param *ExecuteParam) *bytes.Buffer + func GetAsset(path string) ([]byte, error) + func GetComponentAsset() []string + func GetComponentAssetImportHTML() (res template.HTML) + func GetComponentAssetWithinPage() []string + func GetPageContentFromPageType(title, desc, msg string, pt PageType) (template.HTML, template.HTML, template.HTML) + func HTML(s string) template.HTML + func JS(s string) template.JS + func SetComp(name string, comp Component) + func Themes() []string + func VersionCompare(toCompare string, versions []string) bool + func WarningPanel(msg string, pts ...PageType) types.Panel + func WarningPanelWithDescAndTitle(msg, desc, title string, pts ...PageType) types.Panel + type BaseComponent struct + CSS template.CSS + Callbacks types.Callbacks + HTMLData string + JS template.JS + Name string + func (b *BaseComponent) BindActionTo(action types.Action, id string) + func (b *BaseComponent) GetAsset(name string) ([]byte, error) + func (b *BaseComponent) GetAssetList() []string + func (b *BaseComponent) GetCSS() template.CSS + func (b *BaseComponent) GetCallbacks() types.Callbacks + func (b *BaseComponent) GetContentWithData(obj interface{}) template.HTML + func (b *BaseComponent) GetJS() template.JS + func (b *BaseComponent) GetName() string + func (b *BaseComponent) GetTemplate() (*template.Template, string) + func (b *BaseComponent) IsAPage() bool + type Component interface + GetAsset func(string) ([]byte, error) + GetAssetList func() []string + GetCSS func() template.CSS + GetCallbacks func() types.Callbacks + GetContent func() template.HTML + GetJS func() template.JS + GetName func() string + GetTemplate func() (*template.Template, string) + IsAPage func() bool + func GetComp(name string) Component + type ExecuteOptions struct + Animation bool + HideHeader bool + HideSideBar bool + NavDropDownButton []*types.NavDropDownItemButton + NoCompress bool + UpdateMenu bool + func GetExecuteOptions(options []ExecuteOptions) ExecuteOptions + type ExecuteParam struct + Animation bool + Buttons types.Buttons + Config *c.Config + Iframe bool + IsPjax bool + Logo template.HTML + Menu *menu.Menu + NoCompress bool + Panel types.Panel + Tmpl *template.Template + TmplName string + User models.UserModel + type PageType uint8 + const Error500Page + const Missing404Page + const NoPermission403Page + const NormalPage + func GetPageTypeFromPageError(err errors2.PageError) PageType + type Template interface + Alert func() types.AlertAttribute + Box func() types.BoxAttribute + Button func() types.ButtonAttribute + Col func() types.ColAttribute + DataTable func() types.DataTableAttribute + Form func() types.FormAttribute + Get403HTML func() template.HTML + Get404HTML func() template.HTML + Get500HTML func() template.HTML + GetAsset func(string) ([]byte, error) + GetAssetImportHTML func(exceptComponents ...string) template.HTML + GetAssetList func() []string + GetFootJS func() template.HTML + GetHeadHTML func() template.HTML + GetRequirements func() []string + GetTemplate func(bool) (*template.Template, string) + GetTmplList func() map[string]string + GetVersion func() string + Image func() types.ImgAttribute + Label func() types.LabelAttribute + Link func() types.LinkAttribute + Name func() string + Paginator func() types.PaginatorAttribute + Popup func() types.PopupAttribute + Row func() types.RowAttribute + Table func() types.TableAttribute + Tabs func() types.TabsAttribute + Tree func() types.TreeAttribute + TreeView func() types.TreeViewAttribute + func Default() Template + func Get(theme string) Template