Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var List = map[string]string{
"chart-legend": `{{define "chart-legend"}}
<ul class="chart-legend clearfix">
{{range $key, $data := .Data}}
<li><i class="fa fa-circle-o text-{{index $data "color"}}"></i>{{index $data "label"}}</li>
{{end}}
</ul>
{{end}}`,
}
Functions ¶
This section is empty.
Types ¶
type ChartLegend ¶
type ChartLegend struct { *adminTemplate.BaseComponent Data []map[string]string }
func New ¶
func New() ChartLegend
func (ChartLegend) GetContent ¶
func (c ChartLegend) GetContent() template.HTML
func (ChartLegend) SetData ¶
func (c ChartLegend) SetData(value []map[string]string) ChartLegend
Click to show internal directories.
Click to hide internal directories.