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 TopButtonFindTmpl(tmpl string) int
- func TopButtonRegister(topButton ...*TopButton)
- func TopButtonRemove(index int)
- func TopButtonRemoveByTmpl(tmpl string)
- func TopButtonSearch(cb func(*TopButton) bool) 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
- func (c *Blocks) Add(index int, list ...*Block)
- func (c *Blocks) FindTmpl(tmpl string) int
- func (c *Blocks) Ready(ctx echo.Context) error
- func (c *Blocks) Remove(index int)
- func (c *Blocks) RemoveByTmpl(tmpl string)
- func (c *Blocks) Search(cb func(*Block) bool) int
- func (c *Blocks) Set(index int, list ...*Block)
- func (c *Blocks) Size() int
- type Card
- type Cards
- func (c *Cards) Add(index int, list ...*Card)
- func (c *Cards) Build(ctx echo.Context) Cards
- func (c *Cards) FindShort(short string) int
- func (c *Cards) Remove(index int)
- func (c *Cards) RemoveByShort(tmpl string)
- func (c *Cards) Search(cb func(*Card) bool) int
- func (c *Cards) Set(index int, list ...*Card)
- func (c *Cards) Size() int
- type GlobalFooter
- type GlobalFooters
- func (c *GlobalFooters) Add(index int, list ...*GlobalFooter)
- func (c *GlobalFooters) FindTmpl(tmpl string) int
- func (c *GlobalFooters) Ready(ctx echo.Context) error
- func (c *GlobalFooters) Remove(index int)
- func (c *GlobalFooters) RemoveByTmpl(tmpl string)
- func (c *GlobalFooters) Search(cb func(*GlobalFooter) bool) int
- func (c *GlobalFooters) Set(index int, list ...*GlobalFooter)
- func (c *GlobalFooters) Size() int
- type GlobalHead
- type GlobalHeads
- func (c *GlobalHeads) Add(index int, list ...*GlobalHead)
- func (c *GlobalHeads) FindTmpl(tmpl string) int
- func (c *GlobalHeads) Ready(ctx echo.Context) error
- func (c *GlobalHeads) Remove(index int)
- func (c *GlobalHeads) RemoveByTmpl(tmpl string)
- func (c *GlobalHeads) Search(cb func(*GlobalHead) bool) int
- func (c *GlobalHeads) Set(index int, list ...*GlobalHead)
- func (c *GlobalHeads) Size() int
- type TopButton
- type TopButtons
- func (c *TopButtons) Add(index int, list ...*TopButton)
- func (c *TopButtons) FindTmpl(tmpl string) int
- func (c *TopButtons) Ready(ctx echo.Context) error
- func (c *TopButtons) Remove(index int)
- func (c *TopButtons) RemoveByTmpl(tmpl string)
- func (c *TopButtons) Search(cb func(*TopButton) bool) int
- func (c *TopButtons) Set(index int, list ...*TopButton)
- func (c *TopButtons) Size() int
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 TopButtonFindTmpl ¶ added in v3.6.2
func TopButtonRegister ¶
func TopButtonRegister(topButton ...*TopButton)
func TopButtonRemoveByTmpl ¶ added in v3.6.2
func TopButtonRemoveByTmpl(tmpl string)
func TopButtonSearch ¶ added in v3.6.2
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) FindTmpl ¶ added in v3.6.2
func (c *GlobalFooters) FindTmpl(tmpl string) int
func (*GlobalFooters) RemoveByTmpl ¶ added in v3.6.2
func (c *GlobalFooters) RemoveByTmpl(tmpl string)
func (*GlobalFooters) Search ¶ added in v3.6.2
func (c *GlobalFooters) Search(cb func(*GlobalFooter) bool) int
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) FindTmpl ¶ added in v3.6.2
func (c *GlobalHeads) FindTmpl(tmpl string) int
func (*GlobalHeads) RemoveByTmpl ¶ added in v3.6.2
func (c *GlobalHeads) RemoveByTmpl(tmpl string)
func (*GlobalHeads) Search ¶ added in v3.6.2
func (c *GlobalHeads) Search(cb func(*GlobalHead) bool) int
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) FindTmpl ¶ added in v3.6.2
func (c *TopButtons) FindTmpl(tmpl string) int
func (*TopButtons) RemoveByTmpl ¶ added in v3.6.2
func (c *TopButtons) RemoveByTmpl(tmpl string)
func (*TopButtons) Search ¶ added in v3.6.2
func (c *TopButtons) Search(cb func(*TopButton) bool) int
func (*TopButtons) Size ¶
func (c *TopButtons) Size() int
Click to show internal directories.
Click to hide internal directories.