types

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = &Attribute{
	"Default",
	"",
}

Functions

This section is empty.

Types

type AlertAttribute

type AlertAttribute interface {
	SetTheme(value string) AlertAttribute
	SetTitle(value template.HTML) AlertAttribute
	SetContent(value template.HTML) AlertAttribute
	GetContent() template.HTML
}

type AreaChartAttribute

type AreaChartAttribute interface {
	SetTitle(value string) AreaChartAttribute
	SetID(value string) AreaChartAttribute
	SetData(value string) AreaChartAttribute
	SetHeight(value int) AreaChartAttribute
	GetContent() template.HTML
}

type Attribute

type Attribute struct {
	Name    string
	Content string
}

func (*Attribute) GetContent

func (compo *Attribute) GetContent(value interface{}) string

type BarChartAttribute

type BarChartAttribute interface {
	SetID(value string) BarChartAttribute
	SetTitle(value string) BarChartAttribute
	SetWidth(value int) BarChartAttribute
	SetData(value string) BarChartAttribute
	GetContent() template.HTML
}

type BoxAttribute

type BoxAttribute interface {
	SetHeader(value template.HTML) BoxAttribute
	SetBody(value template.HTML) BoxAttribute
	SetFooter(value template.HTML) BoxAttribute
	SetTitle(value template.HTML) BoxAttribute
	WithHeadBorder(has bool) BoxAttribute
	SetTheme(value string) BoxAttribute
	GetContent() template.HTML
}

type ChartLegendAttribute

type ChartLegendAttribute interface {
	SetData(value []map[string]string) ChartLegendAttribute
	GetContent() template.HTML
}

type ColAttribute

type ColAttribute interface {
	SetSize(value map[string]string) ColAttribute
	SetContent(value template.HTML) ColAttribute
	GetContent() template.HTML
}

type Component

type Component interface {
	GetContent(interface{}) string
}

type DataTableAttribute

type DataTableAttribute interface {
	GetDataTableHeader() template.HTML
	SetThead(value []map[string]string) DataTableAttribute
	SetInfoList(value []map[string]template.HTML) DataTableAttribute
	SetEditUrl(value string) DataTableAttribute
	SetDeleteUrl(value string) DataTableAttribute
	SetNewUrl(value string) DataTableAttribute
	GetContent() template.HTML
}

type DescriptionAttribute

type DescriptionAttribute interface {
	SetNumber(value string) DescriptionAttribute
	SetTitle(value string) DescriptionAttribute
	SetArrow(value string) DescriptionAttribute
	SetPercent(value string) DescriptionAttribute
	SetBorder(value string) DescriptionAttribute
	SetColor(value string) DescriptionAttribute
	GetContent() template.HTML
}

type FieldStruct

type FieldStruct struct {
	ExcuFun  FieldValueFun
	Field    string
	TypeName string
	Head     string
	Sortable bool
}

展示列

func (*FieldStruct) SetField

func (field *FieldStruct) SetField(fieldName string) *FieldStruct

func (*FieldStruct) SetHead

func (field *FieldStruct) SetHead(head string) *FieldStruct

func (*FieldStruct) SetTypeName

func (field *FieldStruct) SetTypeName(typeName string) *FieldStruct

type FieldValueFun

type FieldValueFun func(value RowModel) interface{}

数据过滤函数

type FormAttribute

type FormAttribute interface {
	SetContent(value []FormStruct) FormAttribute
	SetPrefix(value string) FormAttribute
	SetUrl(value string) FormAttribute
	SetInfoUrl(value string) FormAttribute
	SetMethod(value string) FormAttribute
	SetTitle(value string) FormAttribute
	SetToken(value string) FormAttribute
	GetContent() template.HTML
}

type FormPanel

type FormPanel struct {
	FormList    []FormStruct
	Table       string
	Title       string
	Description string
}

表单面板

type FormStruct

type FormStruct struct {
	Field    string
	TypeName string
	Head     string
	Default  string
	Editable bool
	FormType string
	Value    string
	Options  []map[string]string
	ExcuFun  FieldValueFun
}

表单列

type GetPanel

type GetPanel func() Panel

type ImgAttribute

type ImgAttribute interface {
	SetWidth(value string) ImgAttribute
	SetHeight(value string) ImgAttribute
	SetSrc(value string) ImgAttribute
	GetContent() template.HTML
}

type InfoBoxAttribute

type InfoBoxAttribute interface {
	SetIcon(value string) InfoBoxAttribute
	SetText(value string) InfoBoxAttribute
	SetNumber(value template.HTML) InfoBoxAttribute
	SetContent(value string) InfoBoxAttribute
	SetColor(value string) InfoBoxAttribute
	GetContent() template.HTML
}

type InfoPanel

type InfoPanel struct {
	FieldList   []FieldStruct
	Table       string
	Title       string
	Description string
}

展示面板

type LabelAttribute

type LabelAttribute interface {
	SetContent(value string) LabelAttribute
	GetContent() template.HTML
}

type LineChartAttribute

type LineChartAttribute interface {
	SetID(value string) LineChartAttribute
	SetTitle(value string) LineChartAttribute
	SetHeight(value int) LineChartAttribute
	SetData(value string) LineChartAttribute
	GetContent() template.HTML
}

type Page

type Page struct {
	User          auth.User
	Menu          menu.Menu
	Panel         Panel
	System        SystemInfo
	AssertRootUrl string
	Title         string
}

type PaginatorAttribute

type PaginatorAttribute interface {
	SetCurPageStartIndex(value string) PaginatorAttribute
	SetCurPageEndIndex(value string) PaginatorAttribute
	SetTotal(value string) PaginatorAttribute
	SetPreviousClass(value string) PaginatorAttribute
	SetPreviousUrl(value string) PaginatorAttribute
	SetPages(value []map[string]string) PaginatorAttribute
	SetNextClass(value string) PaginatorAttribute
	SetNextUrl(value string) PaginatorAttribute
	SetOption(value map[string]template.HTML) PaginatorAttribute
	SetUrl(value string) PaginatorAttribute
	GetContent() template.HTML
}

type Panel

type Panel struct {
	Content     template.HTML
	Title       string
	Description string
	Url         string
}

type PieChartAttribute

type PieChartAttribute interface {
	SetID(value string) PieChartAttribute
	SetData(value string) PieChartAttribute
	SetTitle(value string) PieChartAttribute
	SetHeight(value int) PieChartAttribute
	GetContent() template.HTML
}

type ProductListAttribute

type ProductListAttribute interface {
	SetData(value []map[string]string) ProductListAttribute
	GetContent() template.HTML
}

type ProgressAttribute

type ProgressAttribute interface{}

type ProgressGroupAttribute

type ProgressGroupAttribute interface {
	SetTitle(value string) ProgressGroupAttribute
	SetColor(value string) ProgressGroupAttribute
	SetPercent(value int) ProgressGroupAttribute
	SetDenominator(value int) ProgressGroupAttribute
	SetMolecular(value int) ProgressGroupAttribute
	GetContent() template.HTML
}

type RowAttribute

type RowAttribute interface {
	SetContent(value template.HTML) RowAttribute
	GetContent() template.HTML
}

type RowModel

type RowModel struct {
	ID    int64
	Value string
}

type SmallBoxAttribute

type SmallBoxAttribute interface {
	SetTitle(value string) SmallBoxAttribute
	SetValue(value string) SmallBoxAttribute
	SetUrl(value string) SmallBoxAttribute
	GetContent() template.HTML
}

type SystemInfo

type SystemInfo struct {
	Version string
}

type TableAttribute

type TableAttribute interface {
	SetThead(value []map[string]string) TableAttribute
	SetInfoList(value []map[string]template.HTML) TableAttribute
	SetType(value string) TableAttribute
	GetContent() template.HTML
}

type TabsAttribute

type TabsAttribute interface {
	SetData(value []map[string]template.HTML) TabsAttribute
	GetContent() template.HTML
}

type TreeAttribute

type TreeAttribute interface {
	SetTree(value []menu.MenuItem) TreeAttribute
	SetEditUrl(value string) TreeAttribute
	SetOrderUrl(value string) TreeAttribute
	SetDeleteUrl(value string) TreeAttribute
	GetContent() template.HTML
	GetTreeHeader() template.HTML
}

Jump to

Keyboard shortcuts

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