Template Introducation
The theme template is an abstract representation of ui, including a collection of components and static resources that are called in the plugin. The type in go-admin is Template, as follows:
1
type Template interface {
2
// Components
3
Form() types.FormAttribute
4
Col() types.ColAttribute
5
Table() types.TableAttribute
6
DataTable() types.DataTableAttribute
7
Row() types.RowAttribute
8
Tree() types.TreeAttribute
9
Paginator() types.PaginatorAttribute
10
Label() types.LabelAttribute
11
Image() types.ImgAttribute
12
Alert() types.AlertAttribute
13
Tabs() types.TabsAttribute
14
Popup() types.PopupAttribute
15
16
// Builder methods
17
GetTmplList() map[string]string
18
GetAssetList() []string
19
GetAsset(string) ([]byte, error)
20
GetTemplate(bool) (*template.Template, string)
21
}
Copied!
To develop a ui theme template, you need to implement the above Template interface.
Last modified 1yr ago
Copy link