Documentation
¶
Index ¶
- func ComposeHtml(temList map[string]string, separation bool, compo interface{}, ...) 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) 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
- 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) 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
- 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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (compo *BoxAttribute) SetIframeStyle(iframe bool) types.BoxAttribute
func (*BoxAttribute) SetNoPadding ¶
func (compo *BoxAttribute) SetNoPadding() types.BoxAttribute
func (*BoxAttribute) SetSecondHeadColor ¶
func (compo *BoxAttribute) SetSecondHeadColor(value string) types.BoxAttribute
func (*BoxAttribute) SetSecondHeader ¶
func (compo *BoxAttribute) SetSecondHeader(value template.HTML) types.BoxAttribute
func (*BoxAttribute) SetSecondHeaderClass ¶
func (compo *BoxAttribute) SetSecondHeaderClass(value string) types.BoxAttribute
func (*BoxAttribute) SetStyle ¶
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 ¶
func (compo *BoxAttribute) WithSecondHeadBorder() types.BoxAttribute
type ButtonAttribute ¶
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 ¶
func (compo *ButtonAttribute) AddClass(class string) types.ButtonAttribute
func (*ButtonAttribute) GetContent ¶
func (compo *ButtonAttribute) GetContent() template.HTML
func (*ButtonAttribute) SetContent ¶
func (compo *ButtonAttribute) SetContent(value template.HTML) types.ButtonAttribute
func (*ButtonAttribute) SetHref ¶
func (compo *ButtonAttribute) SetHref(href string) types.ButtonAttribute
func (*ButtonAttribute) SetID ¶
func (compo *ButtonAttribute) SetID(id string) types.ButtonAttribute
func (*ButtonAttribute) SetLoadingText ¶
func (compo *ButtonAttribute) SetLoadingText(value template.HTML) types.ButtonAttribute
func (*ButtonAttribute) SetMarginLeft ¶
func (compo *ButtonAttribute) SetMarginLeft(px int) types.ButtonAttribute
func (*ButtonAttribute) SetMarginRight ¶
func (compo *ButtonAttribute) SetMarginRight(px int) types.ButtonAttribute
func (*ButtonAttribute) SetMiddleSize ¶
func (compo *ButtonAttribute) SetMiddleSize() types.ButtonAttribute
func (*ButtonAttribute) SetOrientationLeft ¶
func (compo *ButtonAttribute) SetOrientationLeft() types.ButtonAttribute
func (*ButtonAttribute) SetOrientationRight ¶
func (compo *ButtonAttribute) SetOrientationRight() types.ButtonAttribute
func (*ButtonAttribute) SetSmallSize ¶
func (compo *ButtonAttribute) SetSmallSize() types.ButtonAttribute
func (*ButtonAttribute) SetTheme ¶
func (compo *ButtonAttribute) SetTheme(value string) types.ButtonAttribute
func (*ButtonAttribute) SetThemeDefault ¶
func (compo *ButtonAttribute) SetThemeDefault() types.ButtonAttribute
func (*ButtonAttribute) SetThemePrimary ¶
func (compo *ButtonAttribute) SetThemePrimary() types.ButtonAttribute
func (*ButtonAttribute) SetThemeWarning ¶
func (compo *ButtonAttribute) SetThemeWarning() types.ButtonAttribute
func (*ButtonAttribute) SetType ¶
func (compo *ButtonAttribute) SetType(value string) types.ButtonAttribute
type ColAttribute ¶
func (*ColAttribute) AddContent ¶
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 template.URL
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
ActionFold bool
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) SetActionFold ¶
func (compo *DataTableAttribute) SetActionFold(fold bool) types.DataTableAttribute
func (*DataTableAttribute) SetActionJs ¶
func (compo *DataTableAttribute) SetActionJs(aj template.JS) types.DataTableAttribute
func (*DataTableAttribute) SetButtons ¶
func (compo *DataTableAttribute) SetButtons(btns template.HTML) types.DataTableAttribute
func (*DataTableAttribute) SetDeleteUrl ¶
func (compo *DataTableAttribute) SetDeleteUrl(value string) types.DataTableAttribute
func (*DataTableAttribute) SetDetailUrl ¶
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 ¶
func (compo *DataTableAttribute) SetHasFilter(hasFilter bool) types.DataTableAttribute
func (*DataTableAttribute) SetHideFilterArea ¶
func (compo *DataTableAttribute) SetHideFilterArea(value bool) types.DataTableAttribute
func (*DataTableAttribute) SetHideRowSelector ¶
func (compo *DataTableAttribute) SetHideRowSelector(value bool) types.DataTableAttribute
func (*DataTableAttribute) SetHideThead ¶
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 ¶
func (compo *DataTableAttribute) SetLayout(value string) types.DataTableAttribute
func (*DataTableAttribute) SetNewUrl ¶
func (compo *DataTableAttribute) SetNewUrl(value string) types.DataTableAttribute
func (*DataTableAttribute) SetNoAction ¶
func (compo *DataTableAttribute) SetNoAction() types.DataTableAttribute
func (*DataTableAttribute) SetPrimaryKey ¶
func (compo *DataTableAttribute) SetPrimaryKey(value string) types.DataTableAttribute
func (*DataTableAttribute) SetSortUrl ¶
func (compo *DataTableAttribute) SetSortUrl(value string) types.DataTableAttribute
func (*DataTableAttribute) SetStyle ¶
func (compo *DataTableAttribute) SetStyle(style string) types.DataTableAttribute
func (*DataTableAttribute) SetThead ¶
func (compo *DataTableAttribute) SetThead(value types.Thead) types.DataTableAttribute
func (*DataTableAttribute) SetUpdateUrl ¶
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 ¶
func (compo *FormAttribute) GetBoxHeaderNoButton() template.HTML
func (*FormAttribute) GetContent ¶
func (compo *FormAttribute) GetContent() template.HTML
func (*FormAttribute) GetDefaultBoxHeader ¶
func (compo *FormAttribute) GetDefaultBoxHeader(hideBack bool) template.HTML
func (*FormAttribute) GetDetailBoxHeader ¶
func (compo *FormAttribute) GetDetailBoxHeader(editUrl, deleteUrl string) template.HTML
func (*FormAttribute) SetAjax ¶
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 ¶
func (compo *FormAttribute) SetFieldsHTML(html template.HTML) types.FormAttribute
func (*FormAttribute) SetFooter ¶
func (compo *FormAttribute) SetFooter(value template.HTML) types.FormAttribute
func (*FormAttribute) SetHeadWidth ¶
func (compo *FormAttribute) SetHeadWidth(width int) types.FormAttribute
func (*FormAttribute) SetHeader ¶
func (compo *FormAttribute) SetHeader(value template.HTML) types.FormAttribute
func (*FormAttribute) SetHiddenFields ¶
func (compo *FormAttribute) SetHiddenFields(fields map[string]string) types.FormAttribute
func (*FormAttribute) SetId ¶
func (compo *FormAttribute) SetId(id string) types.FormAttribute
func (*FormAttribute) SetInputWidth ¶
func (compo *FormAttribute) SetInputWidth(width int) types.FormAttribute
func (*FormAttribute) SetLayout ¶
func (compo *FormAttribute) SetLayout(layout form.Layout) types.FormAttribute
func (*FormAttribute) SetMethod ¶
func (compo *FormAttribute) SetMethod(value string) types.FormAttribute
func (*FormAttribute) SetOperationFooter ¶
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 ¶
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 ¶
func (compo *LabelAttribute) SetColor(value template.HTML) types.LabelAttribute
func (*LabelAttribute) SetContent ¶
func (compo *LabelAttribute) SetContent(value template.HTML) types.LabelAttribute
func (*LabelAttribute) SetType ¶
func (compo *LabelAttribute) SetType(value string) types.LabelAttribute
type LinkAttribute ¶
type LinkAttribute struct {
Name string
URL string
Class template.HTML
Title template.HTML
Attributes template.HTMLAttr
Content template.HTML
types.Attribute
}
func (*LinkAttribute) GetContent ¶
func (compo *LinkAttribute) GetContent() template.HTML
func (*LinkAttribute) NoPjax ¶
func (compo *LinkAttribute) NoPjax() types.LinkAttribute
func (*LinkAttribute) OpenInNewTab ¶
func (compo *LinkAttribute) OpenInNewTab() types.LinkAttribute
func (*LinkAttribute) SetAttributes ¶
func (compo *LinkAttribute) SetAttributes(attr template.HTMLAttr) types.LinkAttribute
func (*LinkAttribute) SetClass ¶
func (compo *LinkAttribute) SetClass(class template.HTML) types.LinkAttribute
func (*LinkAttribute) SetContent ¶
func (compo *LinkAttribute) SetContent(value template.HTML) types.LinkAttribute
func (*LinkAttribute) SetTabTitle ¶
func (compo *LinkAttribute) SetTabTitle(value template.HTML) types.LinkAttribute
func (*LinkAttribute) SetURL ¶
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
ExtraInfo template.HTML
EntriesInfo 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) SetEntriesInfo ¶
func (compo *PaginatorAttribute) SetEntriesInfo(value template.HTML) types.PaginatorAttribute
func (*PaginatorAttribute) SetExtraInfo ¶
func (compo *PaginatorAttribute) SetExtraInfo(value template.HTML) 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 ¶
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 ¶
func (compo *PopupAttribute) SetDraggable() types.PopupAttribute
func (*PopupAttribute) SetFooter ¶
func (compo *PopupAttribute) SetFooter(value template.HTML) types.PopupAttribute
func (*PopupAttribute) SetFooterHTML ¶
func (compo *PopupAttribute) SetFooterHTML(value template.HTML) types.PopupAttribute
func (*PopupAttribute) SetHeight ¶
func (compo *PopupAttribute) SetHeight(height string) types.PopupAttribute
func (*PopupAttribute) SetHideFooter ¶
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 ¶
func (compo *PopupAttribute) SetWidth(width string) types.PopupAttribute
type RowAttribute ¶
func (*RowAttribute) AddContent ¶
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
ActionFold bool
types.Attribute
}
func (*TableAttribute) GetContent ¶
func (compo *TableAttribute) GetContent() template.HTML
func (*TableAttribute) SetHideThead ¶
func (compo *TableAttribute) SetHideThead() types.TableAttribute
func (*TableAttribute) SetInfoList ¶
func (compo *TableAttribute) SetInfoList(value []map[string]types.InfoItem) types.TableAttribute
func (*TableAttribute) SetLayout ¶
func (compo *TableAttribute) SetLayout(value string) types.TableAttribute
func (*TableAttribute) SetMinWidth ¶
func (compo *TableAttribute) SetMinWidth(value string) types.TableAttribute
func (*TableAttribute) SetName ¶
func (compo *TableAttribute) SetName(name string) types.TableAttribute
func (*TableAttribute) SetStyle ¶
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 ¶
func (compo *TreeAttribute) SetUrlPrefix(value string) types.TreeAttribute
type TreeViewAttribute ¶
type TreeViewAttribute struct {
Name string
ID string
Tree types.TreeViewData
TreeJSON template.JS
UrlPrefix string
types.Attribute
}
func (*TreeViewAttribute) GetContent ¶
func (compo *TreeViewAttribute) GetContent() template.HTML
func (*TreeViewAttribute) SetID ¶
func (compo *TreeViewAttribute) SetID(id string) types.TreeViewAttribute
func (*TreeViewAttribute) SetTree ¶
func (compo *TreeViewAttribute) SetTree(value types.TreeViewData) types.TreeViewAttribute
func (*TreeViewAttribute) SetUrlPrefix ¶
func (compo *TreeViewAttribute) SetUrlPrefix(value string) types.TreeViewAttribute
Click to show internal directories.
Click to hide internal directories.