dashboard

package
v2.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: AGPL-3.0 Imports: 2 Imported by: 0

README

后台仪表盘

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockRegister

func BlockRegister(block ...*Block)

func BlockRemove

func BlockRemove(index int)

BlockRemove 删除元素

func BlockSet

func BlockSet(index int, list ...*Block)

BlockSet 设置元素

func CardRegister

func CardRegister(card ...*Card)

func CardRemove

func CardRemove(index int)

CardRemove 删除元素

func CardSet

func CardSet(index int, list ...*Card)

CardSet 设置元素

func GlobalFooterRegister

func GlobalFooterRegister(topButton ...*GlobalFooter)

func GlobalFooterRemove

func GlobalFooterRemove(index int)

GlobalFooterRemove 删除元素

func GlobalFooterSet

func GlobalFooterSet(index int, list ...*GlobalFooter)

GlobalFooterSet 设置元素

func TopButtonRegister

func TopButtonRegister(topButton ...*TopButton)

func TopButtonRemove

func TopButtonRemove(index int)

TopButtonRemove 删除元素

func TopButtonSet

func TopButtonSet(index int, list ...*TopButton)

TopButtonSet 设置元素

Types

type Block

type Block struct {
	Tmpl   string //模板文件
	Footer string //末尾模版或JS代码
	// contains filtered or unexported fields
}

func NewBlock

func NewBlock(content func(echo.Context) error) *Block

func (*Block) Ready

func (c *Block) Ready(ctx echo.Context) error

func (*Block) SetContentGenerator

func (c *Block) SetContentGenerator(content func(echo.Context) error) *Block

type Blocks

type Blocks []*Block

func BlockAll

func BlockAll() Blocks

func (Blocks) Ready

func (c Blocks) Ready(block echo.Context) error

type Card

type Card struct {
	IconName  string      //图标名称:fa-tasks
	IconColor string      //图标颜色:primary、success、danger、warning、info
	Short     string      //简称
	Name      string      //中文名称
	Summary   string      //说明
	Content   interface{} //数字等内容
	// contains filtered or unexported fields
}

func NewCard

func NewCard(content func(echo.Context) interface{}) *Card

func (*Card) Build

func (c *Card) Build(ctx echo.Context) *Card

func (*Card) SetContentGenerator

func (c *Card) SetContentGenerator(content func(echo.Context) interface{}) *Card

type Cards

type Cards []*Card

func CardAll

func CardAll() Cards

func (Cards) Build

func (c Cards) Build(ctx echo.Context) Cards
type GlobalFooter struct {
	Tmpl string //模板文件
	// contains filtered or unexported fields
}

func NewGlobalFooter

func NewGlobalFooter(content func(echo.Context) error) *GlobalFooter

func (*GlobalFooter) Ready

func (c *GlobalFooter) Ready(ctx echo.Context) error

func (*GlobalFooter) SetContentGenerator

func (c *GlobalFooter) SetContentGenerator(content func(echo.Context) error) *GlobalFooter

type GlobalFooters

type GlobalFooters []*GlobalFooter

func GlobalFooterAll

func GlobalFooterAll() GlobalFooters

func (GlobalFooters) Ready

func (c GlobalFooters) Ready(block echo.Context) error

type TopButton

type TopButton struct {
	Tmpl string //模板文件
	// contains filtered or unexported fields
}

func NewTopButton

func NewTopButton(content func(echo.Context) error) *TopButton

func (*TopButton) Ready

func (c *TopButton) Ready(ctx echo.Context) error

func (*TopButton) SetContentGenerator

func (c *TopButton) SetContentGenerator(content func(echo.Context) error) *TopButton

type TopButtons

type TopButtons []*TopButton

func TopButtonAll

func TopButtonAll() TopButtons

func (TopButtons) Ready

func (c TopButtons) Ready(block echo.Context) error

Jump to

Keyboard shortcuts

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