Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CompMap = map[string]Component{ "login": login.GetLoginComponent(), }
Functions ¶
Types ¶
type Component ¶ added in v0.0.2
type Component interface { GetTemplate() (*template.Template, string) GetAssetList() []string GetAsset(string) ([]byte, error) }
Component is the interface which stand for a ui component.
type Template ¶ added in v0.0.2
type Template interface { // Components Form() types.FormAttribute Box() types.BoxAttribute Col() types.ColAttribute Image() types.ImgAttribute SmallBox() types.SmallBoxAttribute Label() types.LabelAttribute Row() types.RowAttribute Table() types.TableAttribute DataTable() types.DataTableAttribute Tree() types.TreeAttribute InfoBox() types.InfoBoxAttribute Paginator() types.PaginatorAttribute AreaChart() types.AreaChartAttribute ProgressGroup() types.ProgressGroupAttribute LineChart() types.LineChartAttribute BarChart() types.BarChartAttribute ProductList() types.ProductListAttribute Description() types.DescriptionAttribute Alert() types.AlertAttribute PieChart() types.PieChartAttribute ChartLegend() types.ChartLegendAttribute Tabs() types.TabsAttribute // Builder methods GetTmplList() map[string]string GetAssetList() []string GetAsset(string) ([]byte, error) GetTemplate(bool) (*template.Template, string) }
Template is the interface which contains methods of ui components. It will be used in the plugins for custom the ui.
Click to show internal directories.
Click to hide internal directories.