form

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: Apache-2.0 Imports: 2 Imported by: 74

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultHTML added in v1.2.0

func DefaultHTML(value string) template.HTML

func GetFormTypeFromFieldType

func GetFormTypeFromFieldType(typeName db.DatabaseType, fieldName string) string

func HiddenInputHTML added in v1.2.0

func HiddenInputHTML(field, value string) template.HTML

Types

type Layout added in v1.1.4

type Layout uint8
const (
	LayoutDefault Layout = iota
	LayoutTwoCol
	LayoutThreeCol
	LayoutFourCol
	LayoutFiveCol
	LayoutSixCol
	LayoutFlow
	LayoutTab
)

func (Layout) Col added in v1.2.4

func (l Layout) Col() int

func (Layout) Flow added in v1.2.4

func (l Layout) Flow() bool

type Type

type Type uint8
const (
	Default Type = iota
	Text
	SelectSingle
	Select
	IconPicker
	SelectBox
	File
	Multifile
	Password
	RichText
	Datetime
	DatetimeRange
	Radio
	Email
	Url
	Ip
	Color
	Currency
	Number
	NumberRange
	TextArea
	Custom
	Switch
)

func CheckType added in v1.2.5

func CheckType(t, def Type) Type

func (Type) IsCustom added in v1.2.6

func (t Type) IsCustom() bool

func (Type) IsFile added in v1.2.6

func (t Type) IsFile() bool

func (Type) IsMultiSelect added in v1.1.6

func (t Type) IsMultiSelect() bool

func (Type) IsRange added in v1.1.2

func (t Type) IsRange() bool

func (Type) IsSelect

func (t Type) IsSelect() bool

func (Type) IsSingleSelect added in v1.2.5

func (t Type) IsSingleSelect() bool

func (Type) SelectedLabel added in v1.0.9

func (t Type) SelectedLabel() []template.HTML

func (Type) String

func (t Type) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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