smallbox

package
v0.0.0-...-fdaec87 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var List = map[string]string{
	"smallbox": `{{define "smallbox"}}
    <div class="small-box bg-{{.Color}}">
        <div class="inner">
            <h3>{{langHtml .Value}}</h3>
            <p>{{langHtml .Title}}</p>
        </div>
        <div class="icon">
            <i class="fa {{.Icon}}"></i>
        </div>
        <a href="{{.Url}}" class="small-box-footer">
            {{lang "more"}}
            <i class="fa fa-arrow-circle-right"></i>
        </a>
    </div>
{{end}}`,
}

Functions

This section is empty.

Types

type SmallBox

type SmallBox struct {
	*adminTemplate.BaseComponent

	Title      template.HTML
	Value      template.HTML
	Url        string
	Color      template.HTML
	IsSvg      bool
	IsHexColor bool
	Icon       template.HTML
}

func New

func New() SmallBox

func (SmallBox) GetContent

func (s SmallBox) GetContent() template.HTML

func (SmallBox) SetColor

func (s SmallBox) SetColor(value template.HTML) SmallBox

func (SmallBox) SetIcon

func (s SmallBox) SetIcon(value template.HTML) SmallBox

func (SmallBox) SetTitle

func (s SmallBox) SetTitle(value template.HTML) SmallBox

func (SmallBox) SetUrl

func (s SmallBox) SetUrl(value string) SmallBox

func (SmallBox) SetValue

func (s SmallBox) SetValue(value template.HTML) SmallBox

Jump to

Keyboard shortcuts

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