components

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Col = &ColAttribute{
	"col",
	"2",
}
View Source
var Default = &Attribute{
	"Default",
	"",
}
View Source
var Label = &LabelAttribute{
	"label",
	"success",
}
View Source
var Row = &RowAttribute{
	"row",
}

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Name    string
	Content string
}

func (*Attribute) GetContent

func (compo *Attribute) GetContent(value interface{}) string

type BoxAttribute

type BoxAttribute struct {
	Name  string
	Title string
	Value string
	Url   string
	Color string
}

func GetBox

func GetBox() *BoxAttribute

func (*BoxAttribute) GetContent

func (compo *BoxAttribute) GetContent() string

func (*BoxAttribute) SetTitle

func (compo *BoxAttribute) SetTitle(value string) *BoxAttribute

func (*BoxAttribute) SetUrl

func (compo *BoxAttribute) SetUrl(value string) *BoxAttribute

func (*BoxAttribute) SetValue

func (compo *BoxAttribute) SetValue(value string) *BoxAttribute

type ColAttribute

type ColAttribute struct {
	Name  string
	Width string
}

func (*ColAttribute) GetContent

func (compo *ColAttribute) GetContent(value interface{}) string

func (*ColAttribute) SetWidth

func (compo *ColAttribute) SetWidth(value string) *ColAttribute

type Component

type Component interface {
	GetContent(interface{}) string
}

type ImgAttribute

type ImgAttribute struct {
	Name   string
	Witdh  string
	Height string
	Src    string
}

func GetImage

func GetImage() *ImgAttribute

func (*ImgAttribute) GetContent

func (compo *ImgAttribute) GetContent() string

func (*ImgAttribute) SetHeight

func (compo *ImgAttribute) SetHeight(value string) *ImgAttribute

func (*ImgAttribute) SetSrc

func (compo *ImgAttribute) SetSrc(value string) *ImgAttribute

func (*ImgAttribute) SetWidth

func (compo *ImgAttribute) SetWidth(value string) *ImgAttribute

type LabelAttribute

type LabelAttribute struct {
	Name  string
	Color string
}

func (*LabelAttribute) GetContent

func (compo *LabelAttribute) GetContent(value interface{}) string

type RowAttribute

type RowAttribute struct {
	Name string
}

func (*RowAttribute) GetContent

func (compo *RowAttribute) GetContent(value interface{}) string

Jump to

Keyboard shortcuts

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