Documentation ¶
Index ¶
- Variables
- type Description
- func (c Description) GetContent() template.HTML
- func (c Description) SetArrow(value string) Description
- func (c Description) SetBorder(value string) Description
- func (c Description) SetColor(value template.HTML) Description
- func (c Description) SetNumber(value template.HTML) Description
- func (c Description) SetPercent(value template.HTML) Description
- func (c Description) SetTitle(value template.HTML) Description
Constants ¶
This section is empty.
Variables ¶
View Source
var List = map[string]string{
"description": `{{define "description"}}
<div class="description-block border-{{.Border}}">
<span class="description-percentage text-{{.Color}}"><i class="fa fa-caret-{{.Arrow}}"></i>{{langHtml .Percent}}%</span>
<h5 class="description-header">{{langHtml .Number}}</h5>
<span class="description-text">{{langHtml .Title}}</span>
</div>
{{end}}`,
}
Functions ¶
This section is empty.
Types ¶
type Description ¶
type Description struct { *adminTemplate.BaseComponent Border string Number template.HTML Title template.HTML Arrow string Color template.HTML Percent template.HTML }
func New ¶
func New() Description
func (Description) GetContent ¶
func (c Description) GetContent() template.HTML
func (Description) SetArrow ¶
func (c Description) SetArrow(value string) Description
func (Description) SetBorder ¶
func (c Description) SetBorder(value string) Description
func (Description) SetColor ¶
func (c Description) SetColor(value template.HTML) Description
func (Description) SetNumber ¶
func (c Description) SetNumber(value template.HTML) Description
func (Description) SetPercent ¶
func (c Description) SetPercent(value template.HTML) Description
func (Description) SetTitle ¶
func (c Description) SetTitle(value template.HTML) Description
Click to show internal directories.
Click to hide internal directories.