Documentation ¶
Index ¶
- func Alert() types.AlertAttribute
- func Box() types.BoxAttribute
- func Button() types.ButtonAttribute
- func Col() types.ColAttribute
- func DataTable() types.DataTableAttribute
- func DetailContent(form types.FormAttribute, editUrl, deleteUrl string) template2.HTML
- func FilterFormFooter(infoUrl string) template2.HTML
- func Form() types.FormAttribute
- func FormContent(form types.FormAttribute, isTab bool) template2.HTML
- func FormFooter(page string, isHideEdit, isHideNew, isHideReset bool) template2.HTML
- func Lang(value string) string
- func MenuFormContent(form types.FormAttribute) template2.HTML
- func Row() types.RowAttribute
- func Tab() types.TabsAttribute
- func Table() types.TableAttribute
- func Template() template.Template
- func Tree() types.TreeAttribute
- type Base
- func (b *Base) AddOperation(nodes ...context.Node)
- func (b *Base) AuthSrv() *auth.TokenService
- func (b *Base) Execute(ctx *context.Context, user models.UserModel, panel types.Panel, ...) *bytes.Buffer
- func (b *Base) HTML(ctx *context.Context, user models.UserModel, panel types.Panel, ...)
- func (b *Base) InitBase(cfg ...Config)
- func (b *Base) OperationHandler(path string, ctx *context.Context) bool
- func (b *Base) Route(name string) context.Router
- func (b *Base) RoutePath(name string, value ...string) string
- func (b *Base) RoutePathWithPrefix(name string, prefix string) string
- func (b *Base) SearchOperation(path, method string) bool
- func (b *Base) SetRoutes(r context.RouterMap)
- func (b *Base) Table(prefix string, ctx *context.Context) table.Table
- func (b *Base) UpdateCfg(cfg Config)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Alert ¶
func Alert() types.AlertAttribute
func Box ¶
func Box() types.BoxAttribute
func Button ¶
func Button() types.ButtonAttribute
func Col ¶
func Col() types.ColAttribute
func DataTable ¶
func DataTable() types.DataTableAttribute
func DetailContent ¶
func DetailContent(form types.FormAttribute, editUrl, deleteUrl string) template2.HTML
func FilterFormFooter ¶
func Form ¶
func Form() types.FormAttribute
func FormContent ¶
func FormContent(form types.FormAttribute, isTab bool) template2.HTML
func FormFooter ¶
func MenuFormContent ¶
func MenuFormContent(form types.FormAttribute) template2.HTML
func Row ¶
func Row() types.RowAttribute
func Tab ¶
func Tab() types.TabsAttribute
func Table ¶
func Table() types.TableAttribute
func Tree ¶
func Tree() types.TreeAttribute
Types ¶
type Base ¶
type Base struct { Config *config.Config Services service.List Conn db.Connection Routes context.RouterMap Generators table.GeneratorList Operations []context.Node OperationLock sync.Mutex }
func (*Base) AddOperation ¶
func (*Base) AuthSrv ¶
func (b *Base) AuthSrv() *auth.TokenService
func (*Base) OperationHandler ¶
func (*Base) RoutePathWithPrefix ¶
func (*Base) SearchOperation ¶
type Config ¶
type Config struct { Config *config.Config Services service.List Connection db.Connection Generators table.GeneratorList }
Click to show internal directories.
Click to hide internal directories.