Versions in this module Expand all Collapse all v1 v1.2.25 Jul 20, 2023 Changes in this version + func ComposeHtml(temList map[string]string, separation bool, compo interface{}, ...) template.HTML + type AlertAttribute struct + Content template.HTML + Name string + Theme string + Title template.HTML + func (compo *AlertAttribute) GetContent() template.HTML + func (compo *AlertAttribute) SetContent(value template.HTML) types.AlertAttribute + func (compo *AlertAttribute) SetTheme(value string) types.AlertAttribute + func (compo *AlertAttribute) SetTitle(value template.HTML) types.AlertAttribute + func (compo *AlertAttribute) Warning(msg string) template.HTML + type Base struct + Attribute types.Attribute + func (b Base) Alert() types.AlertAttribute + func (b Base) Box() types.BoxAttribute + func (b Base) Button() types.ButtonAttribute + func (b Base) Col() types.ColAttribute + func (b Base) DataTable() types.DataTableAttribute + func (b Base) Form() types.FormAttribute + func (b Base) Image() types.ImgAttribute + func (b Base) Label() types.LabelAttribute + func (b Base) Link() types.LinkAttribute + func (b Base) Paginator() types.PaginatorAttribute + func (b Base) Popup() types.PopupAttribute + func (b Base) Row() types.RowAttribute + func (b Base) Table() types.TableAttribute + func (b Base) Tabs() types.TabsAttribute + func (b Base) Tree() types.TreeAttribute + func (b Base) TreeView() types.TreeViewAttribute + type BoxAttribute struct + Attr template.HTMLAttr + Body template.HTML + Footer template.HTML + HeadBorder string + HeadColor string + Header template.HTML + Name string + Padding string + SecondHeadBorder string + SecondHeadColor string + SecondHeader template.HTML + SecondHeaderClass string + Style template.HTMLAttr + Theme string + Title template.HTML + func (compo *BoxAttribute) GetContent() template.HTML + func (compo *BoxAttribute) SetAttr(attr template.HTMLAttr) types.BoxAttribute + func (compo *BoxAttribute) SetBody(value template.HTML) types.BoxAttribute + func (compo *BoxAttribute) SetFooter(value template.HTML) types.BoxAttribute + func (compo *BoxAttribute) SetHeadColor(value string) types.BoxAttribute + func (compo *BoxAttribute) SetHeader(value template.HTML) types.BoxAttribute + func (compo *BoxAttribute) SetIframeStyle(iframe bool) types.BoxAttribute + func (compo *BoxAttribute) SetNoPadding() types.BoxAttribute + func (compo *BoxAttribute) SetSecondHeadColor(value string) types.BoxAttribute + func (compo *BoxAttribute) SetSecondHeader(value template.HTML) types.BoxAttribute + func (compo *BoxAttribute) SetSecondHeaderClass(value string) types.BoxAttribute + func (compo *BoxAttribute) SetStyle(value template.HTMLAttr) types.BoxAttribute + func (compo *BoxAttribute) SetTheme(value string) types.BoxAttribute + func (compo *BoxAttribute) SetTitle(value template.HTML) types.BoxAttribute + func (compo *BoxAttribute) WithHeadBorder() types.BoxAttribute + func (compo *BoxAttribute) WithSecondHeadBorder() types.BoxAttribute + type ButtonAttribute struct + Class string + Content template.HTML + Href string + ID string + LoadingText template.HTML + MarginLeft int + MarginRight int + Name string + Orientation string + Size string + Style template.HTMLAttr + Theme string + Type string + func (compo *ButtonAttribute) AddClass(class string) types.ButtonAttribute + func (compo *ButtonAttribute) GetContent() template.HTML + func (compo *ButtonAttribute) SetContent(value template.HTML) types.ButtonAttribute + func (compo *ButtonAttribute) SetHref(href string) types.ButtonAttribute + func (compo *ButtonAttribute) SetID(id string) types.ButtonAttribute + func (compo *ButtonAttribute) SetLoadingText(value template.HTML) types.ButtonAttribute + func (compo *ButtonAttribute) SetMarginLeft(px int) types.ButtonAttribute + func (compo *ButtonAttribute) SetMarginRight(px int) types.ButtonAttribute + func (compo *ButtonAttribute) SetMiddleSize() types.ButtonAttribute + func (compo *ButtonAttribute) SetOrientationLeft() types.ButtonAttribute + func (compo *ButtonAttribute) SetOrientationRight() types.ButtonAttribute + func (compo *ButtonAttribute) SetSmallSize() types.ButtonAttribute + func (compo *ButtonAttribute) SetTheme(value string) types.ButtonAttribute + func (compo *ButtonAttribute) SetThemeDefault() types.ButtonAttribute + func (compo *ButtonAttribute) SetThemePrimary() types.ButtonAttribute + func (compo *ButtonAttribute) SetThemeWarning() types.ButtonAttribute + func (compo *ButtonAttribute) SetType(value string) types.ButtonAttribute + type ColAttribute struct + Content template.HTML + Name string + Size string + func (compo *ColAttribute) AddContent(value template.HTML) types.ColAttribute + func (compo *ColAttribute) GetContent() template.HTML + func (compo *ColAttribute) SetContent(value template.HTML) types.ColAttribute + func (compo *ColAttribute) SetSize(value types.S) types.ColAttribute + type DataTableAttribute struct + Action template.HTML + ActionFold bool + ActionJs template.JS + Buttons template.HTML + DeleteUrl string + DetailUrl string + EditUrl string + ExportUrl string + HasFilter bool + HideThead bool + InfoUrl string + IsHideFilterArea bool + IsHideRowSelector bool + IsTab bool + NewUrl string + NoAction bool + PrimaryKey string + SortUrl template.URL + UpdateUrl string + func (compo *DataTableAttribute) GetContent() template.HTML + func (compo *DataTableAttribute) GetDataTableHeader() template.HTML + func (compo *DataTableAttribute) SetAction(action template.HTML) types.DataTableAttribute + func (compo *DataTableAttribute) SetActionFold(fold bool) types.DataTableAttribute + func (compo *DataTableAttribute) SetActionJs(aj template.JS) types.DataTableAttribute + func (compo *DataTableAttribute) SetButtons(btns template.HTML) types.DataTableAttribute + func (compo *DataTableAttribute) SetDeleteUrl(value string) types.DataTableAttribute + func (compo *DataTableAttribute) SetDetailUrl(value string) types.DataTableAttribute + func (compo *DataTableAttribute) SetEditUrl(value string) types.DataTableAttribute + func (compo *DataTableAttribute) SetExportUrl(value string) types.DataTableAttribute + func (compo *DataTableAttribute) SetHasFilter(hasFilter bool) types.DataTableAttribute + func (compo *DataTableAttribute) SetHideFilterArea(value bool) types.DataTableAttribute + func (compo *DataTableAttribute) SetHideRowSelector(value bool) types.DataTableAttribute + func (compo *DataTableAttribute) SetHideThead() types.DataTableAttribute + func (compo *DataTableAttribute) SetInfoList(value []map[string]types.InfoItem) types.DataTableAttribute + func (compo *DataTableAttribute) SetInfoUrl(value string) types.DataTableAttribute + func (compo *DataTableAttribute) SetIsTab(value bool) types.DataTableAttribute + func (compo *DataTableAttribute) SetLayout(value string) types.DataTableAttribute + func (compo *DataTableAttribute) SetNewUrl(value string) types.DataTableAttribute + func (compo *DataTableAttribute) SetNoAction() types.DataTableAttribute + func (compo *DataTableAttribute) SetPrimaryKey(value string) types.DataTableAttribute + func (compo *DataTableAttribute) SetSortUrl(value string) types.DataTableAttribute + func (compo *DataTableAttribute) SetStyle(style string) types.DataTableAttribute + func (compo *DataTableAttribute) SetThead(value types.Thead) types.DataTableAttribute + func (compo *DataTableAttribute) SetUpdateUrl(value string) types.DataTableAttribute + type FormAttribute struct + Ajax bool + AjaxErrorJS template.JS + AjaxSuccessJS template.JS + CdnUrl string + Content types.FormFields + ContentList []types.FormFields + FieldsHTML template.HTML + Footer template.HTML + HeadWidth int + Header template.HTML + HiddenFields map[string]string + Id string + InputWidth int + Layout form.Layout + Method string + Name string + OperationFooter template.HTML + Prefix string + PrimaryKey string + TabContents []types.FormFields + TabHeaders []string + Title template.HTML + Url string + func (compo *FormAttribute) GetBoxHeaderNoButton() template.HTML + func (compo *FormAttribute) GetContent() template.HTML + func (compo *FormAttribute) GetDefaultBoxHeader(hideBack bool) template.HTML + func (compo *FormAttribute) GetDetailBoxHeader(editUrl, deleteUrl string) template.HTML + func (compo *FormAttribute) SetAjax(successJS, errorJS template.JS) types.FormAttribute + func (compo *FormAttribute) SetContent(value types.FormFields) types.FormAttribute + func (compo *FormAttribute) SetFieldsHTML(html template.HTML) types.FormAttribute + func (compo *FormAttribute) SetFooter(value template.HTML) types.FormAttribute + func (compo *FormAttribute) SetHeadWidth(width int) types.FormAttribute + func (compo *FormAttribute) SetHeader(value template.HTML) types.FormAttribute + func (compo *FormAttribute) SetHiddenFields(fields map[string]string) types.FormAttribute + func (compo *FormAttribute) SetId(id string) types.FormAttribute + func (compo *FormAttribute) SetInputWidth(width int) types.FormAttribute + func (compo *FormAttribute) SetLayout(layout form.Layout) types.FormAttribute + func (compo *FormAttribute) SetMethod(value string) types.FormAttribute + func (compo *FormAttribute) SetOperationFooter(value template.HTML) types.FormAttribute + func (compo *FormAttribute) SetPrefix(value string) types.FormAttribute + func (compo *FormAttribute) SetPrimaryKey(value string) types.FormAttribute + func (compo *FormAttribute) SetTabContents(value []types.FormFields) types.FormAttribute + func (compo *FormAttribute) SetTabHeaders(value []string) types.FormAttribute + func (compo *FormAttribute) SetTitle(value template.HTML) types.FormAttribute + func (compo *FormAttribute) SetUrl(value string) types.FormAttribute + type ImgAttribute struct + HasModal bool + Height string + Name string + Src template.URL + Uuid string + Width string + func (compo *ImgAttribute) GetContent() template.HTML + func (compo *ImgAttribute) SetHeight(value string) types.ImgAttribute + func (compo *ImgAttribute) SetSrc(value template.HTML) types.ImgAttribute + func (compo *ImgAttribute) SetWidth(value string) types.ImgAttribute + func (compo *ImgAttribute) WithModal() types.ImgAttribute + type LabelAttribute struct + Color template.HTML + Content template.HTML + Name string + Type string + func (compo *LabelAttribute) GetContent() template.HTML + func (compo *LabelAttribute) SetColor(value template.HTML) types.LabelAttribute + func (compo *LabelAttribute) SetContent(value template.HTML) types.LabelAttribute + func (compo *LabelAttribute) SetType(value string) types.LabelAttribute + type LinkAttribute struct + Attributes template.HTMLAttr + Class template.HTML + Content template.HTML + Name string + Title template.HTML + URL string + func (compo *LinkAttribute) GetContent() template.HTML + func (compo *LinkAttribute) NoPjax() types.LinkAttribute + func (compo *LinkAttribute) OpenInNewTab() types.LinkAttribute + func (compo *LinkAttribute) SetAttributes(attr template.HTMLAttr) types.LinkAttribute + func (compo *LinkAttribute) SetClass(class template.HTML) types.LinkAttribute + func (compo *LinkAttribute) SetContent(value template.HTML) types.LinkAttribute + func (compo *LinkAttribute) SetTabTitle(value template.HTML) types.LinkAttribute + func (compo *LinkAttribute) SetURL(value string) types.LinkAttribute + type PaginatorAttribute struct + CurPageEndIndex string + CurPageStartIndex string + EntriesInfo template.HTML + ExtraInfo template.HTML + Name string + NextClass string + NextUrl string + Option map[string]template.HTML + PageSizeList []string + Pages []map[string]string + PreviousClass string + PreviousUrl string + Total string + Url string + func (compo *PaginatorAttribute) GetContent() template.HTML + func (compo *PaginatorAttribute) SetCurPageEndIndex(value string) types.PaginatorAttribute + func (compo *PaginatorAttribute) SetCurPageStartIndex(value string) types.PaginatorAttribute + func (compo *PaginatorAttribute) SetEntriesInfo(value template.HTML) types.PaginatorAttribute + func (compo *PaginatorAttribute) SetExtraInfo(value template.HTML) types.PaginatorAttribute + func (compo *PaginatorAttribute) SetNextClass(value string) types.PaginatorAttribute + func (compo *PaginatorAttribute) SetNextUrl(value string) types.PaginatorAttribute + func (compo *PaginatorAttribute) SetOption(value map[string]template.HTML) types.PaginatorAttribute + func (compo *PaginatorAttribute) SetPageSizeList(value []string) types.PaginatorAttribute + func (compo *PaginatorAttribute) SetPages(value []map[string]string) types.PaginatorAttribute + func (compo *PaginatorAttribute) SetPreviousClass(value string) types.PaginatorAttribute + func (compo *PaginatorAttribute) SetPreviousUrl(value string) types.PaginatorAttribute + func (compo *PaginatorAttribute) SetTotal(value string) types.PaginatorAttribute + func (compo *PaginatorAttribute) SetUrl(value string) types.PaginatorAttribute + type PopupAttribute struct + Body template.HTML + Draggable bool + Footer template.HTML + FooterHTML template.HTML + Height string + HideFooter bool + ID string + Name string + Size string + Title template.HTML + Width string + func (compo *PopupAttribute) GetContent() template.HTML + func (compo *PopupAttribute) SetBody(value template.HTML) types.PopupAttribute + func (compo *PopupAttribute) SetDraggable() types.PopupAttribute + func (compo *PopupAttribute) SetFooter(value template.HTML) types.PopupAttribute + func (compo *PopupAttribute) SetFooterHTML(value template.HTML) types.PopupAttribute + func (compo *PopupAttribute) SetHeight(height string) types.PopupAttribute + func (compo *PopupAttribute) SetHideFooter() types.PopupAttribute + func (compo *PopupAttribute) SetID(value string) types.PopupAttribute + func (compo *PopupAttribute) SetSize(value string) types.PopupAttribute + func (compo *PopupAttribute) SetTitle(value template.HTML) types.PopupAttribute + func (compo *PopupAttribute) SetWidth(width string) types.PopupAttribute + type RowAttribute struct + Content template.HTML + Name string + func (compo *RowAttribute) AddContent(value template.HTML) types.RowAttribute + func (compo *RowAttribute) GetContent() template.HTML + func (compo *RowAttribute) SetContent(value template.HTML) types.RowAttribute + type TableAttribute struct + Action template.HTML + ActionFold bool + DeleteUrl string + DetailUrl string + EditUrl string + ExportUrl string + HideThead bool + InfoList []map[string]types.InfoItem + IsTab bool + Layout string + MinWidth string + Name string + NoAction bool + PrimaryKey string + SortUrl string + Style string + Thead types.Thead + Type string + UpdateUrl string + func (compo *TableAttribute) GetContent() template.HTML + func (compo *TableAttribute) SetHideThead() types.TableAttribute + func (compo *TableAttribute) SetInfoList(value []map[string]types.InfoItem) types.TableAttribute + func (compo *TableAttribute) SetLayout(value string) types.TableAttribute + func (compo *TableAttribute) SetMinWidth(value string) types.TableAttribute + func (compo *TableAttribute) SetName(name string) types.TableAttribute + func (compo *TableAttribute) SetStyle(style string) types.TableAttribute + func (compo *TableAttribute) SetThead(value types.Thead) types.TableAttribute + func (compo *TableAttribute) SetType(value string) types.TableAttribute + type TabsAttribute struct + Data []map[string]template.HTML + Name string + func (compo *TabsAttribute) GetContent() template.HTML + func (compo *TabsAttribute) SetData(value []map[string]template.HTML) types.TabsAttribute + type TreeAttribute struct + DeleteUrl string + EditUrl string + Name string + OrderUrl string + Tree []menu.Item + UrlPrefix string + func (compo *TreeAttribute) GetContent() template.HTML + func (compo *TreeAttribute) GetTreeHeader() template.HTML + func (compo *TreeAttribute) SetDeleteUrl(value string) types.TreeAttribute + func (compo *TreeAttribute) SetEditUrl(value string) types.TreeAttribute + func (compo *TreeAttribute) SetOrderUrl(value string) types.TreeAttribute + func (compo *TreeAttribute) SetTree(value []menu.Item) types.TreeAttribute + func (compo *TreeAttribute) SetUrlPrefix(value string) types.TreeAttribute + type TreeViewAttribute struct + ID string + Name string + Tree types.TreeViewData + TreeJSON template.JS + UrlPrefix string + func (compo *TreeViewAttribute) GetContent() template.HTML + func (compo *TreeViewAttribute) SetID(id string) types.TreeViewAttribute + func (compo *TreeViewAttribute) SetTree(value types.TreeViewData) types.TreeViewAttribute + func (compo *TreeViewAttribute) SetUrlPrefix(value string) types.TreeViewAttribute