Documentation ¶
Index ¶
- func BlockAdd(index int, block ...*Block)
- func BlockRegister(block ...*Block)
- func BlockRemove(index int)
- func BlockSet(index int, list ...*Block)
- func CardAdd(index int, card ...*Card)
- func CardRegister(card ...*Card)
- func CardRemove(index int)
- func CardSet(index int, list ...*Card)
- func GlobalFooterAdd(index int, footer ...*GlobalFooter)
- func GlobalFooterRegister(footer ...*GlobalFooter)
- func GlobalFooterRemove(index int)
- func GlobalFooterSet(index int, list ...*GlobalFooter)
- func GlobalHeadAdd(index int, footer ...*GlobalHead)
- func GlobalHeadRegister(footer ...*GlobalHead)
- func GlobalHeadRemove(index int)
- func GlobalHeadSet(index int, list ...*GlobalHead)
- func TopButtonAdd(index int, topButton ...*TopButton)
- func TopButtonRegister(topButton ...*TopButton)
- func TopButtonRemove(index int)
- func TopButtonSet(index int, list ...*TopButton)
- type Block
- func (c *Block) IsHidden(ctx echo.Context) bool
- func (c *Block) Ready(ctx echo.Context) error
- func (c *Block) SetContentGenerator(content func(echo.Context) error) *Block
- func (c *Block) SetExtra(extra echo.H) *Block
- func (c *Block) SetExtraKV(key string, value interface{}) *Block
- func (c *Block) SetFooter(footer string) *Block
- func (c *Block) SetHidden(hidden bool) *Block
- func (c *Block) SetHiddenDetector(hidden func(echo.Context) bool) *Block
- func (c *Block) SetIdent(ident string) *Block
- func (c *Block) SetTitle(title string) *Block
- func (c *Block) SetTmpl(tmpl string) *Block
- type Blocks
- type Card
- type Cards
- type GlobalFooter
- type GlobalFooters
- type GlobalHead
- type GlobalHeads
- type TopButton
- type TopButtons
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockRegister ¶
func BlockRegister(block ...*Block)
func CardRegister ¶
func CardRegister(card ...*Card)
func GlobalFooterAdd ¶
func GlobalFooterAdd(index int, footer ...*GlobalFooter)
func GlobalFooterRegister ¶
func GlobalFooterRegister(footer ...*GlobalFooter)
func GlobalHeadAdd ¶
func GlobalHeadAdd(index int, footer ...*GlobalHead)
func GlobalHeadRegister ¶
func GlobalHeadRegister(footer ...*GlobalHead)
func TopButtonAdd ¶
func TopButtonRegister ¶
func TopButtonRegister(topButton ...*TopButton)
Types ¶
type Block ¶
type Block struct { Title string `json:",omitempty" xml:",omitempty"` // 标题 Ident string `json:",omitempty" xml:",omitempty"` // 英文标识 Extra echo.H `json:",omitempty" xml:",omitempty"` // 附加数据 Hidden sql.NullBool Tmpl string //模板文件 // contains filtered or unexported fields }
func (*Block) SetContentGenerator ¶
func (*Block) SetExtraKV ¶
func (*Block) SetHiddenDetector ¶
type Card ¶
type GlobalFooter ¶
type GlobalFooter struct { // contains filtered or unexported fields }
func NewGlobalFooter ¶
func NewGlobalFooter(tmpl string, handle ...func(echo.Context) error) *GlobalFooter
func (*GlobalFooter) SetContentGenerator ¶
func (c *GlobalFooter) SetContentGenerator(content func(echo.Context) error) *GlobalFooter
func (*GlobalFooter) SetTmpl ¶
func (c *GlobalFooter) SetTmpl(tmpl string) *GlobalFooter
type GlobalFooters ¶
type GlobalFooters []*GlobalFooter
func GlobalFooterAll ¶
func GlobalFooterAll(_ echo.Context) GlobalFooters
func (*GlobalFooters) Add ¶
func (c *GlobalFooters) Add(index int, list ...*GlobalFooter)
func (*GlobalFooters) Size ¶
func (c *GlobalFooters) Size() int
type GlobalHead ¶
type GlobalHead struct { Tmpl string //模板文件 // contains filtered or unexported fields }
func NewGlobalHead ¶
func NewGlobalHead(tmpl string, handle ...func(echo.Context) error) *GlobalHead
func (*GlobalHead) SetContentGenerator ¶
func (c *GlobalHead) SetContentGenerator(content func(echo.Context) error) *GlobalHead
func (*GlobalHead) SetTmpl ¶
func (c *GlobalHead) SetTmpl(tmpl string) *GlobalHead
type GlobalHeads ¶
type GlobalHeads []*GlobalHead
func GlobalHeadAll ¶
func GlobalHeadAll(_ echo.Context) GlobalHeads
func (*GlobalHeads) Add ¶
func (c *GlobalHeads) Add(index int, list ...*GlobalHead)
func (*GlobalHeads) Size ¶
func (c *GlobalHeads) Size() int
type TopButton ¶
type TopButton struct { Tmpl string //模板文件 // contains filtered or unexported fields }
type TopButtons ¶
type TopButtons []*TopButton
func TopButtonAll ¶
func TopButtonAll(_ echo.Context) TopButtons
func (*TopButtons) Add ¶
func (c *TopButtons) Add(index int, list ...*TopButton)
func (*TopButtons) Size ¶
func (c *TopButtons) Size() int
Click to show internal directories.
Click to hide internal directories.