Documentation
¶
Index ¶
- func ComposeHtml(temList map[string]string, compo interface{}, templateName ...string) template.HTML
- type AlertAttribute
- 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
- 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
- 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
- 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
- type DataTableAttribute
- func (compo *DataTableAttribute) GetContent() template.HTML
- func (compo *DataTableAttribute) GetDataTableHeader() template.HTML
- func (compo *DataTableAttribute) SetAction(action template.HTML) 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
- 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
- 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
- type LinkAttribute
- 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
- 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) SetExtraInfo(value template.HTML) types.PaginatorAttribute
- func (compo *PaginatorAttribute) SetHideEntriesInfo() 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
- 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
- type TableAttribute
- 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
- type TreeAttribute
- 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
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlertAttribute ¶
type AlertAttribute struct {
Name string
Theme string
Title template.HTML
Content template.HTML
types.Attribute
}
func (*AlertAttribute) GetContent ¶
func (compo *AlertAttribute) GetContent() template.HTML
func (*AlertAttribute) SetContent ¶
func (compo *AlertAttribute) SetContent(value template.HTML) types.AlertAttribute
func (*AlertAttribute) SetTheme ¶
func (compo *AlertAttribute) SetTheme(value string) types.AlertAttribute
func (*AlertAttribute) SetTitle ¶
func (compo *AlertAttribute) SetTitle(value template.HTML) types.AlertAttribute
type Base ¶
func (Base) Alert ¶
func (b Base) Alert() types.AlertAttribute
func (Base) Box ¶
func (b Base) Box() types.BoxAttribute
func (Base) Button ¶ added in v1.1.2
func (b Base) Button() types.ButtonAttribute
func (Base) Col ¶
func (b Base) Col() types.ColAttribute
func (Base) DataTable ¶
func (b Base) DataTable() types.DataTableAttribute
func (Base) Form ¶
func (b Base) Form() types.FormAttribute
func (Base) Image ¶
func (b Base) Image() types.ImgAttribute
func (Base) Label ¶
func (b Base) Label() types.LabelAttribute
func (Base) Link ¶ added in v1.1.8
func (b Base) Link() types.LinkAttribute
func (Base) Paginator ¶
func (b Base) Paginator() types.PaginatorAttribute
func (Base) Popup ¶
func (b Base) Popup() types.PopupAttribute
func (Base) Row ¶
func (b Base) Row() types.RowAttribute
func (Base) Table ¶
func (b Base) Table() types.TableAttribute
func (Base) Tabs ¶
func (b Base) Tabs() types.TabsAttribute
func (Base) Tree ¶
func (b Base) Tree() types.TreeAttribute
func (Base) TreeView ¶ added in v1.2.11
func (b Base) TreeView() types.TreeViewAttribute
type BoxAttribute ¶
type BoxAttribute struct {
Name string
Header template.HTML
Body template.HTML
Title template.HTML
Theme string
HeadBorder string
Attr template.HTMLAttr
HeadColor string
SecondHeaderClass string
SecondHeader template.HTML
SecondHeadBorder string
SecondHeadColor string
Style template.HTMLAttr
Padding string
types.Attribute
}
func (*BoxAttribute) GetContent ¶
func (compo *BoxAttribute) GetContent() template.HTML
func (*BoxAttribute) SetAttr ¶ added in v1.2.11
func (compo *BoxAttribute) SetAttr(attr template.HTMLAttr) types.BoxAttribute
func (*BoxAttribute) SetBody ¶
func (compo *BoxAttribute) SetBody(value template.HTML) types.BoxAttribute
func (*BoxAttribute) SetFooter ¶
func (compo *BoxAttribute) SetFooter(value template.HTML) types.BoxAttribute
func (*BoxAttribute) SetHeadColor ¶
func (compo *BoxAttribute) SetHeadColor(value string) types.BoxAttribute
func (*BoxAttribute) SetHeader ¶
func (compo *BoxAttribute) SetHeader(value template.HTML) types.BoxAttribute
func (*BoxAttribute) SetIframeStyle ¶ added in v1.2.11
func (compo *BoxAttribute) SetIframeStyle(iframe bool) types.BoxAttribute
func (*BoxAttribute) SetNoPadding ¶ added in v1.1.2
func (compo *BoxAttribute) SetNoPadding() types.BoxAttribute
func (*BoxAttribute) SetSecondHeadColor ¶ added in v1.1.2
func (compo *BoxAttribute) SetSecondHeadColor(value string) types.BoxAttribute
func (*BoxAttribute) SetSecondHeader ¶ added in v1.1.2
func (compo *BoxAttribute) SetSecondHeader(value template.HTML) types.BoxAttribute
func (*BoxAttribute) SetSecondHeaderClass ¶ added in v1.1.2
func (compo *BoxAttribute) SetSecondHeaderClass(value string) types.BoxAttribute
func (*BoxAttribute) SetStyle ¶ added in v1.1.7
func (compo *BoxAttribute) SetStyle(value template.HTMLAttr) types.BoxAttribute
func (*BoxAttribute) SetTheme ¶
func (compo *BoxAttribute) SetTheme(value string) types.BoxAttribute
func (*BoxAttribute) SetTitle ¶
func (compo *BoxAttribute) SetTitle(value template.HTML) types.BoxAttribute
func (*BoxAttribute) WithHeadBorder ¶
func (compo *BoxAttribute) WithHeadBorder() types.BoxAttribute
func (*BoxAttribute) WithSecondHeadBorder ¶ added in v1.1.2
func (compo *BoxAttribute) WithSecondHeadBorder() types.BoxAttribute
type ButtonAttribute ¶ added in v1.1.2
type ButtonAttribute struct {
Name string
Content template.HTML
Orientation string
LoadingText template.HTML
Theme string
Type string
Size string
Href string
Class string
ID string
Style template.HTMLAttr
MarginLeft int
MarginRight int
types.Attribute
}
func (*ButtonAttribute) AddClass ¶ added in v1.2.16
func (compo *ButtonAttribute) AddClass(class string) types.ButtonAttribute
func (*ButtonAttribute) GetContent ¶ added in v1.1.2
func (compo *ButtonAttribute) GetContent() template.HTML
func (*ButtonAttribute) SetContent ¶ added in v1.1.2
func (compo *ButtonAttribute) SetContent(value template.HTML) types.ButtonAttribute
func (*ButtonAttribute) SetHref ¶ added in v1.1.2
func (compo *ButtonAttribute) SetHref(href string) types.ButtonAttribute
func (*ButtonAttribute) SetID ¶ added in v1.2.16
func (compo *ButtonAttribute) SetID(id string) types.ButtonAttribute
func (*ButtonAttribute) SetLoadingText ¶ added in v1.1.2
func (compo *ButtonAttribute) SetLoadingText(value template.HTML) types.ButtonAttribute
func (*ButtonAttribute) SetMarginLeft ¶ added in v1.1.2
func (compo *ButtonAttribute) SetMarginLeft(px int) types.ButtonAttribute
func (*ButtonAttribute) SetMarginRight ¶ added in v1.1.2
func (compo *ButtonAttribute) SetMarginRight(px int) types.ButtonAttribute
func (*ButtonAttribute) SetMiddleSize ¶ added in v1.1.2
func (compo *ButtonAttribute) SetMiddleSize() types.ButtonAttribute
func (*ButtonAttribute) SetOrientationLeft ¶ added in v1.1.2
func (compo *ButtonAttribute) SetOrientationLeft() types.ButtonAttribute
func (*ButtonAttribute) SetOrientationRight ¶ added in v1.1.2
func (compo *ButtonAttribute) SetOrientationRight() types.ButtonAttribute
func (*ButtonAttribute) SetSmallSize ¶ added in v1.1.2
func (compo *ButtonAttribute) SetSmallSize() types.ButtonAttribute
func (*ButtonAttribute) SetTheme ¶ added in v1.1.2
func (compo *ButtonAttribute) SetTheme(value string) types.ButtonAttribute
func (*ButtonAttribute) SetThemeDefault ¶ added in v1.1.2
func (compo *ButtonAttribute) SetThemeDefault() types.ButtonAttribute
func (*ButtonAttribute) SetThemePrimary ¶ added in v1.1.2
func (compo *ButtonAttribute) SetThemePrimary() types.ButtonAttribute
func (*ButtonAttribute) SetThemeWarning ¶ added in v1.1.2
func (compo *ButtonAttribute) SetThemeWarning() types.ButtonAttribute
func (*ButtonAttribute) SetType ¶ added in v1.1.2
func (compo *ButtonAttribute) SetType(value string) types.ButtonAttribute
type ColAttribute ¶
func (*ColAttribute) AddContent ¶ added in v1.0.3
func (compo *ColAttribute) AddContent(value template.HTML) types.ColAttribute
func (*ColAttribute) GetContent ¶
func (compo *ColAttribute) GetContent() template.HTML
func (*ColAttribute) SetContent ¶
func (compo *ColAttribute) SetContent(value template.HTML) types.ColAttribute
func (*ColAttribute) SetSize ¶
func (compo *ColAttribute) SetSize(value types.S) types.ColAttribute
type DataTableAttribute ¶
type DataTableAttribute struct {
TableAttribute
EditUrl string
NewUrl string
UpdateUrl string
HideThead bool
DetailUrl string
SortUrl string
DeleteUrl string
PrimaryKey string
IsTab bool
ExportUrl string
InfoUrl string
Buttons template.HTML
ActionJs template.JS
IsHideFilterArea bool
IsHideRowSelector bool
NoAction bool
HasFilter bool
Action template.HTML
types.Attribute
}
func (*DataTableAttribute) GetContent ¶
func (compo *DataTableAttribute) GetContent() template.HTML
func (*DataTableAttribute) GetDataTableHeader ¶
func (compo *DataTableAttribute) GetDataTableHeader() template.HTML
func (*DataTableAttribute) SetAction ¶
func (compo *DataTableAttribute) SetAction(action template.HTML) types.DataTableAttribute
func (*DataTableAttribute) SetActionJs ¶ added in v1.1.0
func (compo *DataTableAttribute) SetActionJs(aj template.JS) types.DataTableAttribute
func (*DataTableAttribute) SetButtons ¶ added in v1.1.0
func (compo *DataTableAttribute) SetButtons(btns template.HTML) types.DataTableAttribute
func (*DataTableAttribute) SetDeleteUrl ¶
func (compo *DataTableAttribute) SetDeleteUrl(value string) types.DataTableAttribute
func (*DataTableAttribute) SetDetailUrl ¶ added in v1.1.6
func (compo *DataTableAttribute) SetDetailUrl(value string) types.DataTableAttribute
func (*DataTableAttribute) SetEditUrl ¶
func (compo *DataTableAttribute) SetEditUrl(value string) types.DataTableAttribute
func (*DataTableAttribute) SetExportUrl ¶
func (compo *DataTableAttribute) SetExportUrl(value string) types.DataTableAttribute
func (*DataTableAttribute) SetHasFilter ¶ added in v1.1.2
func (compo *DataTableAttribute) SetHasFilter(hasFilter bool) types.DataTableAttribute
func (*DataTableAttribute) SetHideFilterArea ¶ added in v1.1.4
func (compo *DataTableAttribute) SetHideFilterArea(value bool) types.DataTableAttribute
func (*DataTableAttribute) SetHideRowSelector ¶ added in v1.1.5
func (compo *DataTableAttribute) SetHideRowSelector(value bool) types.DataTableAttribute
func (*DataTableAttribute) SetHideThead ¶ added in v1.2.9
func (compo *DataTableAttribute) SetHideThead() types.DataTableAttribute
func (*DataTableAttribute) SetInfoList ¶
func (compo *DataTableAttribute) SetInfoList(value []map[string]types.InfoItem) types.DataTableAttribute
func (*DataTableAttribute) SetInfoUrl ¶
func (compo *DataTableAttribute) SetInfoUrl(value string) types.DataTableAttribute
func (*DataTableAttribute) SetIsTab ¶
func (compo *DataTableAttribute) SetIsTab(value bool) types.DataTableAttribute
func (*DataTableAttribute) SetLayout ¶ added in v1.2.0
func (compo *DataTableAttribute) SetLayout(value string) types.DataTableAttribute
func (*DataTableAttribute) SetNewUrl ¶
func (compo *DataTableAttribute) SetNewUrl(value string) types.DataTableAttribute
func (*DataTableAttribute) SetNoAction ¶ added in v1.2.8
func (compo *DataTableAttribute) SetNoAction() types.DataTableAttribute
func (*DataTableAttribute) SetPrimaryKey ¶
func (compo *DataTableAttribute) SetPrimaryKey(value string) types.DataTableAttribute
func (*DataTableAttribute) SetSortUrl ¶ added in v1.2.11
func (compo *DataTableAttribute) SetSortUrl(value string) types.DataTableAttribute
func (*DataTableAttribute) SetStyle ¶ added in v1.2.9
func (compo *DataTableAttribute) SetStyle(style string) types.DataTableAttribute
func (*DataTableAttribute) SetThead ¶
func (compo *DataTableAttribute) SetThead(value types.Thead) types.DataTableAttribute
func (*DataTableAttribute) SetUpdateUrl ¶ added in v1.0.8
func (compo *DataTableAttribute) SetUpdateUrl(value string) types.DataTableAttribute
type FormAttribute ¶
type FormAttribute struct {
Name string
Id string
Header template.HTML
Content types.FormFields
ContentList []types.FormFields
Layout form.Layout
TabContents []types.FormFields
TabHeaders []string
Url string
FieldsHTML template.HTML
Method string
PrimaryKey string
Ajax bool
AjaxSuccessJS template.JS
AjaxErrorJS template.JS
HeadWidth int
InputWidth int
HiddenFields map[string]string
Title template.HTML
Prefix string
CdnUrl string
types.Attribute
}
func (*FormAttribute) GetBoxHeaderNoButton ¶ added in v1.1.2
func (compo *FormAttribute) GetBoxHeaderNoButton() template.HTML
func (*FormAttribute) GetContent ¶
func (compo *FormAttribute) GetContent() template.HTML
func (*FormAttribute) GetDefaultBoxHeader ¶ added in v1.2.4
func (compo *FormAttribute) GetDefaultBoxHeader(hideBack bool) template.HTML
func (*FormAttribute) GetDetailBoxHeader ¶ added in v1.1.6
func (compo *FormAttribute) GetDetailBoxHeader(editUrl, deleteUrl string) template.HTML
func (*FormAttribute) SetAjax ¶ added in v1.2.12
func (compo *FormAttribute) SetAjax(successJS, errorJS template.JS) types.FormAttribute
func (*FormAttribute) SetContent ¶
func (compo *FormAttribute) SetContent(value types.FormFields) types.FormAttribute
func (*FormAttribute) SetFieldsHTML ¶ added in v1.2.11
func (compo *FormAttribute) SetFieldsHTML(html template.HTML) types.FormAttribute
func (*FormAttribute) SetFooter ¶
func (compo *FormAttribute) SetFooter(value template.HTML) types.FormAttribute
func (*FormAttribute) SetHeadWidth ¶ added in v1.2.4
func (compo *FormAttribute) SetHeadWidth(width int) types.FormAttribute
func (*FormAttribute) SetHeader ¶
func (compo *FormAttribute) SetHeader(value template.HTML) types.FormAttribute
func (*FormAttribute) SetHiddenFields ¶ added in v1.2.4
func (compo *FormAttribute) SetHiddenFields(fields map[string]string) types.FormAttribute
func (*FormAttribute) SetId ¶ added in v1.2.12
func (compo *FormAttribute) SetId(id string) types.FormAttribute
func (*FormAttribute) SetInputWidth ¶ added in v1.2.4
func (compo *FormAttribute) SetInputWidth(width int) types.FormAttribute
func (*FormAttribute) SetLayout ¶ added in v1.1.4
func (compo *FormAttribute) SetLayout(layout form.Layout) types.FormAttribute
func (*FormAttribute) SetMethod ¶
func (compo *FormAttribute) SetMethod(value string) types.FormAttribute
func (*FormAttribute) SetOperationFooter ¶ added in v1.1.2
func (compo *FormAttribute) SetOperationFooter(value template.HTML) types.FormAttribute
func (*FormAttribute) SetPrefix ¶
func (compo *FormAttribute) SetPrefix(value string) types.FormAttribute
func (*FormAttribute) SetPrimaryKey ¶
func (compo *FormAttribute) SetPrimaryKey(value string) types.FormAttribute
func (*FormAttribute) SetTabContents ¶
func (compo *FormAttribute) SetTabContents(value []types.FormFields) types.FormAttribute
func (*FormAttribute) SetTabHeaders ¶
func (compo *FormAttribute) SetTabHeaders(value []string) types.FormAttribute
func (*FormAttribute) SetTitle ¶
func (compo *FormAttribute) SetTitle(value template.HTML) types.FormAttribute
func (*FormAttribute) SetUrl ¶
func (compo *FormAttribute) SetUrl(value string) types.FormAttribute
type ImgAttribute ¶
type ImgAttribute struct {
Name string
Width string
Height string
Uuid string
HasModal bool
Src template.URL
types.Attribute
}
func (*ImgAttribute) GetContent ¶
func (compo *ImgAttribute) GetContent() template.HTML
func (*ImgAttribute) SetHeight ¶
func (compo *ImgAttribute) SetHeight(value string) types.ImgAttribute
func (*ImgAttribute) SetSrc ¶
func (compo *ImgAttribute) SetSrc(value template.HTML) types.ImgAttribute
func (*ImgAttribute) SetWidth ¶
func (compo *ImgAttribute) SetWidth(value string) types.ImgAttribute
func (*ImgAttribute) WithModal ¶ added in v1.1.3
func (compo *ImgAttribute) WithModal() types.ImgAttribute
type LabelAttribute ¶
type LabelAttribute struct {
Name string
Color template.HTML
Type string
Content template.HTML
types.Attribute
}
func (*LabelAttribute) GetContent ¶
func (compo *LabelAttribute) GetContent() template.HTML
func (*LabelAttribute) SetColor ¶ added in v1.1.0
func (compo *LabelAttribute) SetColor(value template.HTML) types.LabelAttribute
func (*LabelAttribute) SetContent ¶
func (compo *LabelAttribute) SetContent(value template.HTML) types.LabelAttribute
func (*LabelAttribute) SetType ¶ added in v1.1.0
func (compo *LabelAttribute) SetType(value string) types.LabelAttribute
type LinkAttribute ¶ added in v1.1.8
type LinkAttribute struct {
Name string
URL string
Class template.HTML
Title template.HTML
Attributes template.HTMLAttr
Content template.HTML
types.Attribute
}
func (*LinkAttribute) GetContent ¶ added in v1.1.8
func (compo *LinkAttribute) GetContent() template.HTML
func (*LinkAttribute) NoPjax ¶ added in v1.2.8
func (compo *LinkAttribute) NoPjax() types.LinkAttribute
func (*LinkAttribute) OpenInNewTab ¶ added in v1.1.8
func (compo *LinkAttribute) OpenInNewTab() types.LinkAttribute
func (*LinkAttribute) SetAttributes ¶ added in v1.2.8
func (compo *LinkAttribute) SetAttributes(attr template.HTMLAttr) types.LinkAttribute
func (*LinkAttribute) SetClass ¶ added in v1.2.8
func (compo *LinkAttribute) SetClass(class template.HTML) types.LinkAttribute
func (*LinkAttribute) SetContent ¶ added in v1.1.8
func (compo *LinkAttribute) SetContent(value template.HTML) types.LinkAttribute
func (*LinkAttribute) SetTabTitle ¶ added in v1.1.8
func (compo *LinkAttribute) SetTabTitle(value template.HTML) types.LinkAttribute
func (*LinkAttribute) SetURL ¶ added in v1.1.8
func (compo *LinkAttribute) SetURL(value string) types.LinkAttribute
type PaginatorAttribute ¶
type PaginatorAttribute struct {
Name string
CurPageStartIndex string
CurPageEndIndex string
Total string
PreviousClass string
PreviousUrl string
Pages []map[string]string
NextClass string
NextUrl string
PageSizeList []string
Option map[string]template.HTML
Url string
HideEntriesInfo bool
ExtraInfo template.HTML
types.Attribute
}
func (*PaginatorAttribute) GetContent ¶
func (compo *PaginatorAttribute) GetContent() template.HTML
func (*PaginatorAttribute) SetCurPageEndIndex ¶
func (compo *PaginatorAttribute) SetCurPageEndIndex(value string) types.PaginatorAttribute
func (*PaginatorAttribute) SetCurPageStartIndex ¶
func (compo *PaginatorAttribute) SetCurPageStartIndex(value string) types.PaginatorAttribute
func (*PaginatorAttribute) SetExtraInfo ¶ added in v1.1.5
func (compo *PaginatorAttribute) SetExtraInfo(value template.HTML) types.PaginatorAttribute
func (*PaginatorAttribute) SetHideEntriesInfo ¶ added in v1.2.11
func (compo *PaginatorAttribute) SetHideEntriesInfo() types.PaginatorAttribute
func (*PaginatorAttribute) SetNextClass ¶
func (compo *PaginatorAttribute) SetNextClass(value string) types.PaginatorAttribute
func (*PaginatorAttribute) SetNextUrl ¶
func (compo *PaginatorAttribute) SetNextUrl(value string) types.PaginatorAttribute
func (*PaginatorAttribute) SetOption ¶
func (compo *PaginatorAttribute) SetOption(value map[string]template.HTML) types.PaginatorAttribute
func (*PaginatorAttribute) SetPageSizeList ¶ added in v1.0.8
func (compo *PaginatorAttribute) SetPageSizeList(value []string) types.PaginatorAttribute
func (*PaginatorAttribute) SetPages ¶
func (compo *PaginatorAttribute) SetPages(value []map[string]string) types.PaginatorAttribute
func (*PaginatorAttribute) SetPreviousClass ¶
func (compo *PaginatorAttribute) SetPreviousClass(value string) types.PaginatorAttribute
func (*PaginatorAttribute) SetPreviousUrl ¶
func (compo *PaginatorAttribute) SetPreviousUrl(value string) types.PaginatorAttribute
func (*PaginatorAttribute) SetTotal ¶
func (compo *PaginatorAttribute) SetTotal(value string) types.PaginatorAttribute
func (*PaginatorAttribute) SetUrl ¶
func (compo *PaginatorAttribute) SetUrl(value string) types.PaginatorAttribute
type PopupAttribute ¶
type PopupAttribute struct {
Name string
ID string
Body template.HTML
Title template.HTML
Size string
Height string
Width string
Draggable bool
types.Attribute
}
func (*PopupAttribute) GetContent ¶
func (compo *PopupAttribute) GetContent() template.HTML
func (*PopupAttribute) SetBody ¶
func (compo *PopupAttribute) SetBody(value template.HTML) types.PopupAttribute
func (*PopupAttribute) SetDraggable ¶ added in v1.2.11
func (compo *PopupAttribute) SetDraggable() types.PopupAttribute
func (*PopupAttribute) SetFooter ¶
func (compo *PopupAttribute) SetFooter(value template.HTML) types.PopupAttribute
func (*PopupAttribute) SetFooterHTML ¶ added in v1.2.15
func (compo *PopupAttribute) SetFooterHTML(value template.HTML) types.PopupAttribute
func (*PopupAttribute) SetHeight ¶ added in v1.2.11
func (compo *PopupAttribute) SetHeight(height string) types.PopupAttribute
func (*PopupAttribute) SetHideFooter ¶ added in v1.2.11
func (compo *PopupAttribute) SetHideFooter() types.PopupAttribute
func (*PopupAttribute) SetID ¶
func (compo *PopupAttribute) SetID(value string) types.PopupAttribute
func (*PopupAttribute) SetSize ¶
func (compo *PopupAttribute) SetSize(value string) types.PopupAttribute
func (*PopupAttribute) SetTitle ¶
func (compo *PopupAttribute) SetTitle(value template.HTML) types.PopupAttribute
func (*PopupAttribute) SetWidth ¶ added in v1.2.11
func (compo *PopupAttribute) SetWidth(width string) types.PopupAttribute
type RowAttribute ¶
func (*RowAttribute) AddContent ¶ added in v1.0.3
func (compo *RowAttribute) AddContent(value template.HTML) types.RowAttribute
func (*RowAttribute) GetContent ¶
func (compo *RowAttribute) GetContent() template.HTML
func (*RowAttribute) SetContent ¶
func (compo *RowAttribute) SetContent(value template.HTML) types.RowAttribute
type TableAttribute ¶
type TableAttribute struct {
Name string
Thead types.Thead
InfoList []map[string]types.InfoItem
Type string
PrimaryKey string
Style string
HideThead bool
NoAction bool
Action template.HTML
EditUrl string
MinWidth string
DeleteUrl string
DetailUrl string
SortUrl string
UpdateUrl string
Layout string
IsTab bool
ExportUrl string
types.Attribute
}
func (*TableAttribute) GetContent ¶
func (compo *TableAttribute) GetContent() template.HTML
func (*TableAttribute) SetHideThead ¶ added in v1.2.9
func (compo *TableAttribute) SetHideThead() types.TableAttribute
func (*TableAttribute) SetInfoList ¶
func (compo *TableAttribute) SetInfoList(value []map[string]types.InfoItem) types.TableAttribute
func (*TableAttribute) SetLayout ¶ added in v1.2.0
func (compo *TableAttribute) SetLayout(value string) types.TableAttribute
func (*TableAttribute) SetMinWidth ¶
func (compo *TableAttribute) SetMinWidth(value string) types.TableAttribute
func (*TableAttribute) SetName ¶ added in v1.2.13
func (compo *TableAttribute) SetName(name string) types.TableAttribute
func (*TableAttribute) SetStyle ¶ added in v1.2.9
func (compo *TableAttribute) SetStyle(style string) types.TableAttribute
func (*TableAttribute) SetThead ¶
func (compo *TableAttribute) SetThead(value types.Thead) types.TableAttribute
func (*TableAttribute) SetType ¶
func (compo *TableAttribute) SetType(value string) types.TableAttribute
type TabsAttribute ¶
func (*TabsAttribute) GetContent ¶
func (compo *TabsAttribute) GetContent() template.HTML
func (*TabsAttribute) SetData ¶
func (compo *TabsAttribute) SetData(value []map[string]template.HTML) types.TabsAttribute
type TreeAttribute ¶
type TreeAttribute struct {
Name string
Tree []menu.Item
EditUrl string
DeleteUrl string
UrlPrefix string
OrderUrl string
types.Attribute
}
func (*TreeAttribute) GetContent ¶
func (compo *TreeAttribute) GetContent() template.HTML
func (*TreeAttribute) GetTreeHeader ¶
func (compo *TreeAttribute) GetTreeHeader() template.HTML
func (*TreeAttribute) SetDeleteUrl ¶
func (compo *TreeAttribute) SetDeleteUrl(value string) types.TreeAttribute
func (*TreeAttribute) SetEditUrl ¶
func (compo *TreeAttribute) SetEditUrl(value string) types.TreeAttribute
func (*TreeAttribute) SetOrderUrl ¶
func (compo *TreeAttribute) SetOrderUrl(value string) types.TreeAttribute
func (*TreeAttribute) SetTree ¶
func (compo *TreeAttribute) SetTree(value []menu.Item) types.TreeAttribute
func (*TreeAttribute) SetUrlPrefix ¶ added in v1.0.7
func (compo *TreeAttribute) SetUrlPrefix(value string) types.TreeAttribute
type TreeViewAttribute ¶ added in v1.2.11
type TreeViewAttribute struct {
Name string
ID string
Tree types.TreeViewData
TreeJSON template.JS
UrlPrefix string
types.Attribute
}
func (*TreeViewAttribute) GetContent ¶ added in v1.2.11
func (compo *TreeViewAttribute) GetContent() template.HTML
func (*TreeViewAttribute) SetID ¶ added in v1.2.11
func (compo *TreeViewAttribute) SetID(id string) types.TreeViewAttribute
func (*TreeViewAttribute) SetTree ¶ added in v1.2.11
func (compo *TreeViewAttribute) SetTree(value types.TreeViewData) types.TreeViewAttribute
func (*TreeViewAttribute) SetUrlPrefix ¶ added in v1.2.11
func (compo *TreeViewAttribute) SetUrlPrefix(value string) types.TreeViewAttribute
Click to show internal directories.
Click to hide internal directories.