description

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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