Documentation ¶
Index ¶
- Variables
- type InfoBox
- func (i InfoBox) GetContent() template.HTML
- func (i InfoBox) SetColor(value template.HTML) InfoBox
- func (i InfoBox) SetContent(value template.HTML) InfoBox
- func (i InfoBox) SetIcon(value template.HTML) InfoBox
- func (i InfoBox) SetNumber(value template.HTML) InfoBox
- func (i InfoBox) SetText(value template.HTML) InfoBox
Constants ¶
This section is empty.
Variables ¶
View Source
var List = map[string]string{
"infobox": `{{define "infobox"}}
<div class="info-box">
{{if .IsHexColor}}
<span class="info-box-icon" style="background-color: {{.Color}} !important;">
{{else}}
<span class="info-box-icon bg-{{.Color}}">
{{end}}
{{if .IsSvg}}
{{.Icon}}
{{else}}
<i class="fa {{.Icon}}"></i>
{{end}}
</span>
<div class="info-box-content">
<span class="info-box-text">{{langHtml .Text}}</span>
<span class="info-box-number">{{langHtml .Number}}</span>
{{langHtml .Content}}
</div>
</div>
{{end}}`,
}
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.