Documentation ¶
Index ¶
- Variables
- type ProgressGroup
- func (p ProgressGroup) GetContent() template.HTML
- func (p ProgressGroup) SetColor(value template.HTML) ProgressGroup
- func (p ProgressGroup) SetDenominator(value int) ProgressGroup
- func (p ProgressGroup) SetMolecular(value int) ProgressGroup
- func (p ProgressGroup) SetPercent(value int) ProgressGroup
- func (p ProgressGroup) SetTitle(value template.HTML) ProgressGroup
Constants ¶
This section is empty.
Variables ¶
View Source
var List = map[string]string{
"progress-group": `{{define "progress-group"}}
<div class="progress-group">
<span class="progress-text">{{langHtml .Title}}</span>
<span class="progress-number"><b>{{.Molecular}}</b>/{{.Denominator}}</span>
<div class="progress sm">
{{if .IsHexColor}}
<div class="progress-bar" style="width: {{.Percent}}%;background-color: {{.Color}} !important;"></div>
{{else}}
<div class="progress-bar progress-bar-{{.Color}}" style="width: {{.Percent}}%"></div>
{{end}}
</div>
</div>
{{end}}`,
}
Functions ¶
This section is empty.
Types ¶
type ProgressGroup ¶
type ProgressGroup struct { *adminTemplate.BaseComponent Title template.HTML Molecular int Denominator int Color template.HTML IsHexColor bool Percent int }
func New ¶
func New() ProgressGroup
func (ProgressGroup) GetContent ¶
func (p ProgressGroup) GetContent() template.HTML
func (ProgressGroup) SetColor ¶
func (p ProgressGroup) SetColor(value template.HTML) ProgressGroup
func (ProgressGroup) SetDenominator ¶
func (p ProgressGroup) SetDenominator(value int) ProgressGroup
func (ProgressGroup) SetMolecular ¶
func (p ProgressGroup) SetMolecular(value int) ProgressGroup
func (ProgressGroup) SetPercent ¶
func (p ProgressGroup) SetPercent(value int) ProgressGroup
func (ProgressGroup) SetTitle ¶
func (p ProgressGroup) SetTitle(value template.HTML) ProgressGroup
Click to show internal directories.
Click to hide internal directories.