form

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultHTML

func DefaultHTML(value string) template.HTML

func GetFormTypeFromFieldType

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

func HiddenInputHTML

func HiddenInputHTML(field, value string) template.HTML

Types

type Layout

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

func (Layout) Col

func (l Layout) Col() int

func (Layout) Flow

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

func CheckType(t, def Type) Type

func (Type) IsCustom

func (t Type) IsCustom() bool

func (Type) IsFile

func (t Type) IsFile() bool

func (Type) IsMultiSelect

func (t Type) IsMultiSelect() bool

func (Type) IsRange

func (t Type) IsRange() bool

func (Type) IsSelect

func (t Type) IsSelect() bool

func (Type) IsSingleSelect

func (t Type) IsSingleSelect() bool

func (Type) SelectedLabel

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