form

package
v1.2.17 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: Apache-2.0 Imports: 4 Imported by: 76

Documentation

Index

Constants

This section is empty.

Variables

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 GetLayoutFromString added in v1.2.12

func GetLayoutFromString(s string) Layout

func (Layout) Col added in v1.2.4

func (l Layout) Col() int

func (Layout) Default added in v1.2.12

func (l Layout) Default() bool

func (Layout) Flow added in v1.2.4

func (l Layout) Flow() bool

func (Layout) String added in v1.2.12

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 added in v1.2.5

func CheckType(t, def Type) Type

func (Type) FixOptions added in v1.2.11

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

func (Type) GetDefaultOptions added in v1.2.11

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

func (Type) IsArray added in v1.2.11

func (t Type) IsArray() bool

func (Type) IsCode added in v1.2.8

func (t Type) IsCode() bool

func (Type) IsCustom added in v1.2.6

func (t Type) IsCustom() bool

func (Type) IsDate added in v1.2.11

func (t Type) IsDate() bool

func (Type) IsDateRange added in v1.2.11

func (t Type) IsDateRange() bool

func (Type) IsDateTime added in v1.2.11

func (t Type) IsDateTime() bool

func (Type) IsDateTimeRange added in v1.2.11

func (t Type) IsDateTimeRange() bool

func (Type) IsEditor added in v1.2.15

func (t Type) IsEditor() bool

func (Type) IsFile added in v1.2.6

func (t Type) IsFile() bool

func (Type) IsMultiFile added in v1.2.14

func (t Type) IsMultiFile() 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) IsRichText added in v1.2.15

func (t Type) IsRichText() bool

func (Type) IsSelect

func (t Type) IsSelect() bool

func (Type) IsSingleSelect added in v1.2.5

func (t Type) IsSingleSelect() bool

func (Type) IsSlider added in v1.2.11

func (t Type) IsSlider() bool

func (Type) IsTable added in v1.2.11

func (t Type) IsTable() bool

func (Type) IsTextarea added in v1.2.15

func (t Type) IsTextarea() bool

func (Type) Name added in v1.2.13

func (t Type) Name() string

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