component

package
v0.0.0-...-7b0100a Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

type Button struct {
	Section  string
	Theme    string
	Template string
	Class    string
	Content  string
	Link     template.URL
	T        *template.Template
}

Button is a beubo component that can be rendered using HTML templates

func (Button) GetSection

func (b Button) GetSection() string

GetSection is a getter for the Section property

func (Button) GetTemplate

func (b Button) GetTemplate() *template.Template

GetTemplate is a getter for the T Property

func (Button) GetTemplateName

func (b Button) GetTemplateName() string

GetTemplateName is a getter for the Template Property

func (Button) GetTheme

func (b Button) GetTheme() string

GetTheme is a getter for the Theme Property

func (Button) Render

func (b Button) Render() string

Render calls RenderComponent to turn a Component into a html string for browser output

type CheckBoxField

type CheckBoxField struct {
	Theme      string
	Template   string
	Content    string
	Class      string
	Name       string
	Identifier string
	Value      string
	Checked    bool
	T          *template.Template
}

CheckBoxField is a beubo component that can be rendered using HTML templates

func (CheckBoxField) GetSection

func (cb CheckBoxField) GetSection() string

GetSection is a getter for the Section property

func (CheckBoxField) GetTemplate

func (cb CheckBoxField) GetTemplate() *template.Template

GetTemplate is a getter for the T Property

func (CheckBoxField) GetTemplateName

func (cb CheckBoxField) GetTemplateName() string

GetTemplateName is a getter for the Template Property

func (CheckBoxField) GetTheme

func (cb CheckBoxField) GetTheme() string

GetTheme is a getter for the Theme Property

func (CheckBoxField) Render

func (cb CheckBoxField) Render() string

Render calls RenderComponent to turn a Component into a html string for browser output

type Column

type Column struct {
	Name  string
	Field page.Component
	Value string
}

Column represents a html column in a table which is part of a row

func (Column) RenderField

func (c Column) RenderField(value string, field page.Component) template.HTML

RenderField calls Render to turn a Column into a string which is added to the Table Render

type Form

type Form struct {
	Section  string
	Fields   []page.Component
	Theme    string
	Template string
	T        *template.Template
	Method   string
	Action   string
}

Form is a beubo component that can be rendered using HTML templates

func (Form) GetSection

func (f Form) GetSection() string

GetSection is a getter for the Section property

func (Form) GetTemplate

func (f Form) GetTemplate() *template.Template

GetTemplate is a getter for the T Property

func (Form) GetTemplateName

func (f Form) GetTemplateName() string

GetTemplateName is a getter for the Template Property

func (Form) GetTheme

func (f Form) GetTheme() string

GetTheme is a getter for the Theme Property

func (Form) Render

func (f Form) Render() string

Render calls RenderComponent to turn a Component into a html string for browser output

func (Form) RenderField

func (f Form) RenderField(value string, field page.Component) template.HTML

RenderField calls Render to turn a Column into a string which is added to the Form Render

type HiddenField

type HiddenField struct {
	Theme      string
	Template   string
	Identifier string
	Name       string
	Value      string
	T          *template.Template
}

HiddenField is a beubo component that can be rendered using HTML templates

func (HiddenField) GetSection

func (hf HiddenField) GetSection() string

GetSection is a getter for the Section property

func (HiddenField) GetTemplate

func (hf HiddenField) GetTemplate() *template.Template

GetTemplate is a getter for the T Property

func (HiddenField) GetTemplateName

func (hf HiddenField) GetTemplateName() string

GetTemplateName is a getter for the Template Property

func (HiddenField) GetTheme

func (hf HiddenField) GetTheme() string

GetTheme is a getter for the Theme Property

func (HiddenField) Render

func (hf HiddenField) Render() string

Render calls RenderComponent to turn a Component into a html string for browser output

type RadioField

type RadioField struct {
	Theme      string
	Template   string
	Class      string
	Identifier string
	Name       string
	Value      string
	Content    string
	Checked    bool
	T          *template.Template
}

RadioField is a beubo component that can be rendered using HTML templates

func (RadioField) GetSection

func (rf RadioField) GetSection() string

GetSection is a getter for the Section property

func (RadioField) GetTemplate

func (rf RadioField) GetTemplate() *template.Template

GetTemplate is a getter for the T Property

func (RadioField) GetTemplateName

func (rf RadioField) GetTemplateName() string

GetTemplateName is a getter for the Template Property

func (RadioField) GetTheme

func (rf RadioField) GetTheme() string

GetTheme is a getter for the Theme Property

func (RadioField) Render

func (rf RadioField) Render() string

Render calls RenderComponent to turn a Component into a html string for browser output

type Row

type Row struct {
	Columns []Column
}

Row represents a html table row which can have columns

type SelectField

type SelectField struct {
	Theme      string
	Template   string
	Identifier string
	Class      string
	Name       string
	Options    []SelectFieldOption
	T          *template.Template
}

SelectField is a beubo component that can be rendered using HTML templates

func (SelectField) GetSection

func (sf SelectField) GetSection() string

GetSection is a getter for the Section property

func (SelectField) GetTemplate

func (sf SelectField) GetTemplate() *template.Template

GetTemplate is a getter for the T Property

func (SelectField) GetTemplateName

func (sf SelectField) GetTemplateName() string

GetTemplateName is a getter for the Template Property

func (SelectField) GetTheme

func (sf SelectField) GetTheme() string

GetTheme is a getter for the Theme Property

func (SelectField) Render

func (sf SelectField) Render() string

Render calls RenderComponent to turn a Component into a html string for browser output

type SelectFieldOption

type SelectFieldOption struct {
	Value   string
	Content string
}

SelectFieldOption is part of the SelectField values, there should be one or more of these

type Table

type Table struct {
	Section          string
	Header           []Column
	Rows             []Row
	Theme            string
	Template         string
	PageNumber       int // Current page
	PageDisplayCount int // How many rows per page
	T                *template.Template
}

Table is a beubo component that can be rendered using HTML templates

func (Table) GetSection

func (t Table) GetSection() string

GetSection is a getter for the Section property

func (Table) GetTemplate

func (t Table) GetTemplate() *template.Template

GetTemplate is a getter for the T Property

func (Table) GetTemplateName

func (t Table) GetTemplateName() string

GetTemplateName is a getter for the Template Property

func (Table) GetTheme

func (t Table) GetTheme() string

GetTheme is a getter for the Theme Property

func (Table) Render

func (t Table) Render() string

Render calls RenderComponent to turn a Component into a html string for browser output

func (Table) RenderColumn

func (t Table) RenderColumn(c Column) string

RenderColumn calls RenderComponent to turn a Column into a html string which is added to the Table Render

type Text

type Text struct {
	Section  string
	Content  template.HTML
	Theme    string
	Template string
	Class    string
	T        *template.Template
}

Text is a beubo component that can be rendered using HTML templates

func (Text) GetSection

func (t Text) GetSection() string

GetSection is a getter for the Section property

func (Text) GetTemplate

func (t Text) GetTemplate() *template.Template

GetTemplate is a getter for the T Property

func (Text) GetTemplateName

func (t Text) GetTemplateName() string

GetTemplateName is a getter for the Template property

func (Text) GetTheme

func (t Text) GetTheme() string

GetTheme is a getter for the Theme property

func (Text) Render

func (t Text) Render() string

Render calls RenderComponent to turn a Component into a html string for browser output

type TextAreaField

type TextAreaField struct {
	Content    string
	Theme      string
	Template   string
	Class      string
	Identifier string
	Label      string
	Name       string
	Rows       int
	Cols       int
	T          *template.Template
}

TextAreaField is a beubo component that can be rendered using HTML templates

func (TextAreaField) GetSection

func (t TextAreaField) GetSection() string

GetSection is a getter for the Section property

func (TextAreaField) GetTemplate

func (t TextAreaField) GetTemplate() *template.Template

GetTemplate is a getter for the T Property

func (TextAreaField) GetTemplateName

func (t TextAreaField) GetTemplateName() string

GetTemplateName is a getter for the Template property

func (TextAreaField) GetTheme

func (t TextAreaField) GetTheme() string

GetTheme is a getter for the Theme property

func (TextAreaField) Render

func (t TextAreaField) Render() string

Render calls RenderComponent to turn a Component into a html string for browser output

type TextField

type TextField struct {
	Theme       string
	Template    string
	Class       string
	Identifier  string
	Label       string
	Name        string
	Value       string
	Placeholder string
	T           *template.Template
}

TextField is a beubo component that can be rendered using HTML templates

func (TextField) GetSection

func (t TextField) GetSection() string

GetSection is a getter for the Section property

func (TextField) GetTemplate

func (t TextField) GetTemplate() *template.Template

GetTemplate is a getter for the T Property

func (TextField) GetTemplateName

func (t TextField) GetTemplateName() string

GetTemplateName is a getter for the Template property

func (TextField) GetTheme

func (t TextField) GetTheme() string

GetTheme is a getter for the Theme property

func (TextField) Render

func (t TextField) Render() string

Render calls RenderComponent to turn a Component into a html string for browser output

Jump to

Keyboard shortcuts

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