progress_group

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: 3 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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