handler

package
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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 FilterFormFooter(infoUrl string) template2.HTML

func Form

func Form() types.FormAttribute

func FormContent

func FormContent(form types.FormAttribute, isTab bool) template2.HTML

func FormFooter

func FormFooter(page string, isHideEdit, isHideNew, isHideReset bool) template2.HTML

func Lang

func Lang(value string) string
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 Template

func Template() template.Template

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
	NavButtons    types.Buttons
	OperationLock sync.Mutex
}

func (*Base) AddOperation

func (b *Base) AddOperation(nodes ...context.Node)

func (*Base) AuthSrv

func (b *Base) AuthSrv() *auth.TokenService

func (*Base) Execute

func (b *Base) Execute(ctx *context.Context, user models.UserModel, panel types.Panel, animation ...bool) *bytes.Buffer

func (*Base) HTML

func (b *Base) HTML(ctx *context.Context, user models.UserModel, panel types.Panel, animation ...bool)

func (*Base) InitBase

func (b *Base) InitBase(cfg ...Config)

func (*Base) OperationHandler

func (b *Base) OperationHandler(path string, ctx *context.Context) bool

func (*Base) Route

func (b *Base) Route(name string) context.Router

func (*Base) RoutePath

func (b *Base) RoutePath(name string, value ...string) string

func (*Base) RoutePathWithPrefix

func (b *Base) RoutePathWithPrefix(name string, prefix string) string

func (*Base) SearchOperation

func (b *Base) SearchOperation(path, method string) bool

func (*Base) SetRoutes

func (b *Base) SetRoutes(r context.RouterMap)

func (*Base) Table

func (b *Base) Table(prefix string, ctx *context.Context) table.Table

func (*Base) UpdateCfg

func (b *Base) UpdateCfg(cfg Config)

type Config

type Config struct {
	Config     *config.Config
	Services   service.List
	Connection db.Connection
	Generators table.GeneratorList
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL