chart_legend

package
v0.0.0-...-06bc421 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

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