form

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 1 Imported by: 83

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFormTypeFromFieldType

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

Types

type Layout added in v1.1.4

type Layout uint8
const (
	LayoutDefault Layout = iota
	LayoutTwoCol
	LayoutFlow
	LayoutTab
)

type Type

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

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) SelectedLabel added in v1.0.9

func (t Type) SelectedLabel() []string

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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