form

package
v1.2.15-0...-f31f5cd Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 GetLayoutFromString

func GetLayoutFromString(s string) Layout

func (Layout) Col

func (l Layout) Col() int

func (Layout) Default

func (l Layout) Default() bool

func (Layout) Flow

func (l Layout) Flow() bool

func (Layout) String

func (l Layout) String() string

type Type

type Type uint8
const (
	Default Type = iota
	Text
	SelectSingle
	Select
	IconPicker
	SelectBox
	File
	Multifile
	Password
	RichText
	Datetime
	DatetimeRange
	Radio
	Checkbox
	CheckboxStacked
	CheckboxSingle
	Email
	Date
	DateRange
	Url
	Ip
	Color
	Array
	Currency
	Rate
	Number
	Table
	NumberRange
	TextArea
	Custom
	Switch
	Code
	Slider
)

func CheckType

func CheckType(t, def Type) Type

func (Type) FixOptions

func (t Type) FixOptions(m map[string]interface{}) map[string]interface{}

func (Type) GetDefaultOptions

func (t Type) GetDefaultOptions(field string) (map[string]interface{}, map[string]interface{}, template.JS)

func (Type) IsArray

func (t Type) IsArray() bool

func (Type) IsCode

func (t Type) IsCode() bool

func (Type) IsCustom

func (t Type) IsCustom() bool

func (Type) IsDate

func (t Type) IsDate() bool

func (Type) IsDateRange

func (t Type) IsDateRange() bool

func (Type) IsDateTime

func (t Type) IsDateTime() bool

func (Type) IsDateTimeRange

func (t Type) IsDateTimeRange() bool

func (Type) IsFile

func (t Type) IsFile() bool

func (Type) IsMultiFile

func (t Type) IsMultiFile() 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) IsSlider

func (t Type) IsSlider() bool

func (Type) IsTable

func (t Type) IsTable() bool

func (Type) Name

func (t Type) Name() string

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