cbform

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	// contains filtered or unexported fields
}

func New

func New(fields ...Field) *Container

func (*Container) GetField

func (c *Container) GetField(fieldName string) *Field

type Field

type Field struct {
	Name                string
	Type                string
	Placeholder         string
	Label               string
	JsValidationError   string
	JsValidationSuccess string
	Error               error
	Help                string
	Value               interface{}
}

func (*Field) GetError

func (f *Field) GetError() string

func (*Field) GetHelp

func (f *Field) GetHelp() string

func (*Field) GetJsValidationError

func (f *Field) GetJsValidationError() string

func (*Field) GetJsValidationSuccess

func (f *Field) GetJsValidationSuccess() string

func (*Field) GetLabel

func (f *Field) GetLabel() string

func (*Field) GetName

func (f *Field) GetName() string

func (*Field) GetPlaceholder

func (f *Field) GetPlaceholder() string

func (*Field) GetType

func (f *Field) GetType() string

func (*Field) GetValue

func (f *Field) GetValue() interface{}

func (*Field) HasError

func (f *Field) HasError() bool

Jump to

Keyboard shortcuts

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