components

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: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComposeHtml

func ComposeHtml(compo interface{}, templateName ...string) template.HTML

Types

type AlertAttribute

type AlertAttribute struct {
	Name    string
	Theme   string
	Title   template.HTML
	Content template.HTML
}

func (*AlertAttribute) GetContent

func (compo *AlertAttribute) GetContent() template.HTML

func (*AlertAttribute) SetContent

func (compo *AlertAttribute) SetContent(value template.HTML) types.AlertAttribute

func (*AlertAttribute) SetTheme

func (compo *AlertAttribute) SetTheme(value string) types.AlertAttribute

func (*AlertAttribute) SetTitle

func (compo *AlertAttribute) SetTitle(value template.HTML) types.AlertAttribute

type AreaChartAttribute

type AreaChartAttribute struct {
	Name   string
	Title  string
	Data   string
	ID     string
	Height int
}

func (*AreaChartAttribute) GetContent

func (compo *AreaChartAttribute) GetContent() template.HTML

func (*AreaChartAttribute) SetData

func (compo *AreaChartAttribute) SetData(value string) types.AreaChartAttribute

func (*AreaChartAttribute) SetHeight

func (compo *AreaChartAttribute) SetHeight(value int) types.AreaChartAttribute

func (*AreaChartAttribute) SetID

func (compo *AreaChartAttribute) SetID(value string) types.AreaChartAttribute

func (*AreaChartAttribute) SetTitle

func (compo *AreaChartAttribute) SetTitle(value string) types.AreaChartAttribute

type BarChartAttribute

type BarChartAttribute struct {
	Name  string
	Title string
	Data  string
	ID    string
	Width int
}

func (*BarChartAttribute) GetContent

func (compo *BarChartAttribute) GetContent() template.HTML

func (*BarChartAttribute) SetData

func (compo *BarChartAttribute) SetData(value string) types.BarChartAttribute

func (*BarChartAttribute) SetID

func (compo *BarChartAttribute) SetID(value string) types.BarChartAttribute

func (*BarChartAttribute) SetTitle

func (compo *BarChartAttribute) SetTitle(value string) types.BarChartAttribute

func (*BarChartAttribute) SetWidth

func (compo *BarChartAttribute) SetWidth(value int) types.BarChartAttribute

type BoxAttribute

type BoxAttribute struct {
	Name       string
	Header     template.HTML
	Body       template.HTML
	Footer     template.HTML
	Title      template.HTML
	Theme      string
	HeadBorder string
}

func (*BoxAttribute) GetContent

func (compo *BoxAttribute) GetContent() template.HTML

func (*BoxAttribute) SetBody

func (compo *BoxAttribute) SetBody(value template.HTML) types.BoxAttribute

func (*BoxAttribute) SetFooter

func (compo *BoxAttribute) SetFooter(value template.HTML) types.BoxAttribute

func (*BoxAttribute) SetHeader

func (compo *BoxAttribute) SetHeader(value template.HTML) types.BoxAttribute

func (*BoxAttribute) SetTheme

func (compo *BoxAttribute) SetTheme(value string) types.BoxAttribute

func (*BoxAttribute) SetTitle

func (compo *BoxAttribute) SetTitle(value template.HTML) types.BoxAttribute

func (*BoxAttribute) WithHeadBorder

func (compo *BoxAttribute) WithHeadBorder(has bool) types.BoxAttribute

type ChartLegendAttribute

type ChartLegendAttribute struct {
	Name string
	Data []map[string]string
}

func (*ChartLegendAttribute) GetContent

func (compo *ChartLegendAttribute) GetContent() template.HTML

func (*ChartLegendAttribute) SetData

func (compo *ChartLegendAttribute) SetData(value []map[string]string) types.ChartLegendAttribute

type ColAttribute

type ColAttribute struct {
	Name    string
	Content template.HTML
	Size    string
}

func (*ColAttribute) GetContent

func (compo *ColAttribute) GetContent() template.HTML

func (*ColAttribute) SetContent

func (compo *ColAttribute) SetContent(value template.HTML) types.ColAttribute

func (*ColAttribute) SetSize

func (compo *ColAttribute) SetSize(value map[string]string) types.ColAttribute

type DataTableAttribute

type DataTableAttribute struct {
	TableAttribute
	EditUrl   string
	NewUrl    string
	DeleteUrl string
}

func (*DataTableAttribute) GetContent

func (compo *DataTableAttribute) GetContent() template.HTML

func (*DataTableAttribute) GetDataTableHeader

func (compo *DataTableAttribute) GetDataTableHeader() template.HTML

func (*DataTableAttribute) SetDeleteUrl

func (compo *DataTableAttribute) SetDeleteUrl(value string) types.DataTableAttribute

func (*DataTableAttribute) SetEditUrl

func (compo *DataTableAttribute) SetEditUrl(value string) types.DataTableAttribute

func (*DataTableAttribute) SetInfoList

func (compo *DataTableAttribute) SetInfoList(value []map[string]template.HTML) types.DataTableAttribute

func (*DataTableAttribute) SetNewUrl

func (compo *DataTableAttribute) SetNewUrl(value string) types.DataTableAttribute

func (*DataTableAttribute) SetThead

func (compo *DataTableAttribute) SetThead(value []map[string]string) types.DataTableAttribute

type DescriptionAttribute

type DescriptionAttribute struct {
	Name    string
	Border  string
	Number  string
	Title   string
	Arrow   string
	Color   string
	Percent string
}

func (*DescriptionAttribute) GetContent

func (compo *DescriptionAttribute) GetContent() template.HTML

func (*DescriptionAttribute) SetArrow

func (compo *DescriptionAttribute) SetArrow(value string) types.DescriptionAttribute

func (*DescriptionAttribute) SetBorder

func (compo *DescriptionAttribute) SetBorder(value string) types.DescriptionAttribute

func (*DescriptionAttribute) SetColor

func (compo *DescriptionAttribute) SetColor(value string) types.DescriptionAttribute

func (*DescriptionAttribute) SetNumber

func (compo *DescriptionAttribute) SetNumber(value string) types.DescriptionAttribute

func (*DescriptionAttribute) SetPercent

func (compo *DescriptionAttribute) SetPercent(value string) types.DescriptionAttribute

func (*DescriptionAttribute) SetTitle

func (compo *DescriptionAttribute) SetTitle(value string) types.DescriptionAttribute

type FormAttribute

type FormAttribute struct {
	Name      string
	Content   []types.FormStruct
	Url       string
	Method    string
	InfoUrl   string
	CSRFToken string
	Title     string
	Prefix    string
}

func (*FormAttribute) GetContent

func (compo *FormAttribute) GetContent() template.HTML

func (*FormAttribute) SetContent

func (compo *FormAttribute) SetContent(value []types.FormStruct) types.FormAttribute

func (*FormAttribute) SetInfoUrl

func (compo *FormAttribute) SetInfoUrl(value string) types.FormAttribute

func (*FormAttribute) SetMethod

func (compo *FormAttribute) SetMethod(value string) types.FormAttribute

func (*FormAttribute) SetPrefix

func (compo *FormAttribute) SetPrefix(value string) types.FormAttribute

func (*FormAttribute) SetTitle

func (compo *FormAttribute) SetTitle(value string) types.FormAttribute

func (*FormAttribute) SetToken

func (compo *FormAttribute) SetToken(value string) types.FormAttribute

func (*FormAttribute) SetUrl

func (compo *FormAttribute) SetUrl(value string) types.FormAttribute

type ImgAttribute

type ImgAttribute struct {
	Name   string
	Witdh  string
	Height string
	Src    string
}

func (*ImgAttribute) GetContent

func (compo *ImgAttribute) GetContent() template.HTML

func (*ImgAttribute) SetHeight

func (compo *ImgAttribute) SetHeight(value string) types.ImgAttribute

func (*ImgAttribute) SetSrc

func (compo *ImgAttribute) SetSrc(value string) types.ImgAttribute

func (*ImgAttribute) SetWidth

func (compo *ImgAttribute) SetWidth(value string) types.ImgAttribute

type InfoBoxAttribute

type InfoBoxAttribute struct {
	Name    string
	Icon    string
	Text    string
	Number  template.HTML
	Content string
	Color   string
}

func (*InfoBoxAttribute) GetContent

func (compo *InfoBoxAttribute) GetContent() template.HTML

func (*InfoBoxAttribute) SetColor

func (compo *InfoBoxAttribute) SetColor(value string) types.InfoBoxAttribute

func (*InfoBoxAttribute) SetContent

func (compo *InfoBoxAttribute) SetContent(value string) types.InfoBoxAttribute

func (*InfoBoxAttribute) SetIcon

func (compo *InfoBoxAttribute) SetIcon(value string) types.InfoBoxAttribute

func (*InfoBoxAttribute) SetNumber

func (compo *InfoBoxAttribute) SetNumber(value template.HTML) types.InfoBoxAttribute

func (*InfoBoxAttribute) SetText

func (compo *InfoBoxAttribute) SetText(value string) types.InfoBoxAttribute

type LabelAttribute

type LabelAttribute struct {
	Name    string
	Color   string
	Content string
}

func (*LabelAttribute) GetContent

func (compo *LabelAttribute) GetContent() template.HTML

func (*LabelAttribute) SetContent

func (compo *LabelAttribute) SetContent(value string) types.LabelAttribute

type LineChartAttribute

type LineChartAttribute struct {
	Name   string
	Title  string
	Data   string
	ID     string
	Height int
}

func (*LineChartAttribute) GetContent

func (compo *LineChartAttribute) GetContent() template.HTML

func (*LineChartAttribute) SetData

func (compo *LineChartAttribute) SetData(value string) types.LineChartAttribute

func (*LineChartAttribute) SetHeight

func (compo *LineChartAttribute) SetHeight(value int) types.LineChartAttribute

func (*LineChartAttribute) SetID

func (compo *LineChartAttribute) SetID(value string) types.LineChartAttribute

func (*LineChartAttribute) SetTitle

func (compo *LineChartAttribute) SetTitle(value string) types.LineChartAttribute

type PaginatorAttribute

type PaginatorAttribute struct {
	Name              string
	CurPageStartIndex string
	CurPageEndIndex   string
	Total             string
	PreviousClass     string
	PreviousUrl       string
	Pages             []map[string]string
	NextClass         string
	NextUrl           string
	Option            map[string]template.HTML
	Url               string
}

func (*PaginatorAttribute) GetContent

func (compo *PaginatorAttribute) GetContent() template.HTML

func (*PaginatorAttribute) SetCurPageEndIndex

func (compo *PaginatorAttribute) SetCurPageEndIndex(value string) types.PaginatorAttribute

func (*PaginatorAttribute) SetCurPageStartIndex

func (compo *PaginatorAttribute) SetCurPageStartIndex(value string) types.PaginatorAttribute

func (*PaginatorAttribute) SetNextClass

func (compo *PaginatorAttribute) SetNextClass(value string) types.PaginatorAttribute

func (*PaginatorAttribute) SetNextUrl

func (compo *PaginatorAttribute) SetNextUrl(value string) types.PaginatorAttribute

func (*PaginatorAttribute) SetOption

func (compo *PaginatorAttribute) SetOption(value map[string]template.HTML) types.PaginatorAttribute

func (*PaginatorAttribute) SetPages

func (compo *PaginatorAttribute) SetPages(value []map[string]string) types.PaginatorAttribute

func (*PaginatorAttribute) SetPreviousClass

func (compo *PaginatorAttribute) SetPreviousClass(value string) types.PaginatorAttribute

func (*PaginatorAttribute) SetPreviousUrl

func (compo *PaginatorAttribute) SetPreviousUrl(value string) types.PaginatorAttribute

func (*PaginatorAttribute) SetTotal

func (compo *PaginatorAttribute) SetTotal(value string) types.PaginatorAttribute

func (*PaginatorAttribute) SetUrl

func (compo *PaginatorAttribute) SetUrl(value string) types.PaginatorAttribute

type PieChartAttribute

type PieChartAttribute struct {
	Name   string
	ID     string
	Height int
	Data   string
	Title  string
}

func (*PieChartAttribute) GetContent

func (compo *PieChartAttribute) GetContent() template.HTML

func (*PieChartAttribute) SetData

func (compo *PieChartAttribute) SetData(value string) types.PieChartAttribute

func (*PieChartAttribute) SetHeight

func (compo *PieChartAttribute) SetHeight(value int) types.PieChartAttribute

func (*PieChartAttribute) SetID

func (compo *PieChartAttribute) SetID(value string) types.PieChartAttribute

func (*PieChartAttribute) SetTitle

func (compo *PieChartAttribute) SetTitle(value string) types.PieChartAttribute

type ProductListAttribute

type ProductListAttribute struct {
	Name string
	Data []map[string]string
}

func (*ProductListAttribute) GetContent

func (compo *ProductListAttribute) GetContent() template.HTML

func (*ProductListAttribute) SetData

func (compo *ProductListAttribute) SetData(value []map[string]string) types.ProductListAttribute

type ProgressGroupAttribute

type ProgressGroupAttribute struct {
	Name        string
	Title       string
	Molecular   int
	Denominator int
	Color       string
	Percent     int
}

func (*ProgressGroupAttribute) GetContent

func (compo *ProgressGroupAttribute) GetContent() template.HTML

func (*ProgressGroupAttribute) SetColor

func (*ProgressGroupAttribute) SetDenominator

func (compo *ProgressGroupAttribute) SetDenominator(value int) types.ProgressGroupAttribute

func (*ProgressGroupAttribute) SetMolecular

func (compo *ProgressGroupAttribute) SetMolecular(value int) types.ProgressGroupAttribute

func (*ProgressGroupAttribute) SetPercent

func (compo *ProgressGroupAttribute) SetPercent(value int) types.ProgressGroupAttribute

func (*ProgressGroupAttribute) SetTitle

type RowAttribute

type RowAttribute struct {
	Name    string
	Content template.HTML
}

func (*RowAttribute) GetContent

func (compo *RowAttribute) GetContent() template.HTML

func (*RowAttribute) SetContent

func (compo *RowAttribute) SetContent(value template.HTML) types.RowAttribute

type SmallBoxAttribute

type SmallBoxAttribute struct {
	Name  string
	Title string
	Value string
	Url   string
	Color string
}

func (*SmallBoxAttribute) GetContent

func (compo *SmallBoxAttribute) GetContent() template.HTML

func (*SmallBoxAttribute) SetTitle

func (compo *SmallBoxAttribute) SetTitle(value string) types.SmallBoxAttribute

func (*SmallBoxAttribute) SetUrl

func (compo *SmallBoxAttribute) SetUrl(value string) types.SmallBoxAttribute

func (*SmallBoxAttribute) SetValue

func (compo *SmallBoxAttribute) SetValue(value string) types.SmallBoxAttribute

type TableAttribute

type TableAttribute struct {
	Name      string
	Thead     []map[string]string
	InfoList  []map[string]template.HTML
	Type      string
	EditUrl   string
	DeleteUrl string
}

func (*TableAttribute) GetContent

func (compo *TableAttribute) GetContent() template.HTML

func (*TableAttribute) SetInfoList

func (compo *TableAttribute) SetInfoList(value []map[string]template.HTML) types.TableAttribute

func (*TableAttribute) SetThead

func (compo *TableAttribute) SetThead(value []map[string]string) types.TableAttribute

func (*TableAttribute) SetType

func (compo *TableAttribute) SetType(value string) types.TableAttribute

type TabsAttribute

type TabsAttribute struct {
	Name string
	Data []map[string]template.HTML
}

func (*TabsAttribute) GetContent

func (compo *TabsAttribute) GetContent() template.HTML

func (*TabsAttribute) SetData

func (compo *TabsAttribute) SetData(value []map[string]template.HTML) types.TabsAttribute

type TreeAttribute

type TreeAttribute struct {
	Name      string
	Tree      []menu.MenuItem
	EditUrl   string
	DeleteUrl string
	OrderUrl  string
}

func (*TreeAttribute) GetContent

func (compo *TreeAttribute) GetContent() template.HTML

func (*TreeAttribute) GetTreeHeader

func (compo *TreeAttribute) GetTreeHeader() template.HTML

func (*TreeAttribute) SetDeleteUrl

func (compo *TreeAttribute) SetDeleteUrl(value string) types.TreeAttribute

func (*TreeAttribute) SetEditUrl

func (compo *TreeAttribute) SetEditUrl(value string) types.TreeAttribute

func (*TreeAttribute) SetOrderUrl

func (compo *TreeAttribute) SetOrderUrl(value string) types.TreeAttribute

func (*TreeAttribute) SetTree

func (compo *TreeAttribute) SetTree(value []menu.MenuItem) types.TreeAttribute

Jump to

Keyboard shortcuts

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