go-admin: github.com/GoAdminGroup/go-admin/template/types/form Index | Files | Directories

package form

import "github.com/GoAdminGroup/go-admin/template/types/form"

Index

Package Files

form.go

Variables

var AllType = []Type{Default, Text, Array, SelectSingle, Select, IconPicker, SelectBox, File, Multifile, Password,
    RichText, Datetime, DatetimeRange, Checkbox, CheckboxStacked, Radio, Table, Email, Url, Ip, Color, Currency, Number, NumberRange,
    TextArea, Custom, Switch, Code, Rate, Slider, Date, DateRange, CheckboxSingle}

func DefaultHTML Uses

func DefaultHTML(value string) template.HTML

func GetFormTypeFromFieldType Uses

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

func HiddenInputHTML Uses

func HiddenInputHTML(field, value string) template.HTML

type Layout Uses

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

func GetLayoutFromString Uses

func GetLayoutFromString(s string) Layout

func (Layout) Col Uses

func (l Layout) Col() int

func (Layout) Default Uses

func (l Layout) Default() bool

func (Layout) Flow Uses

func (l Layout) Flow() bool

func (Layout) String Uses

func (l Layout) String() string

type Type Uses

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 Uses

func CheckType(t, def Type) Type

func (Type) FixOptions Uses

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

func (Type) GetDefaultOptions Uses

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

func (Type) IsArray Uses

func (t Type) IsArray() bool

func (Type) IsCode Uses

func (t Type) IsCode() bool

func (Type) IsCustom Uses

func (t Type) IsCustom() bool

func (Type) IsDate Uses

func (t Type) IsDate() bool

func (Type) IsDateRange Uses

func (t Type) IsDateRange() bool

func (Type) IsDateTime Uses

func (t Type) IsDateTime() bool

func (Type) IsDateTimeRange Uses

func (t Type) IsDateTimeRange() bool

func (Type) IsFile Uses

func (t Type) IsFile() bool

func (Type) IsMultiFile Uses

func (t Type) IsMultiFile() bool

func (Type) IsMultiSelect Uses

func (t Type) IsMultiSelect() bool

func (Type) IsRange Uses

func (t Type) IsRange() bool

func (Type) IsSelect Uses

func (t Type) IsSelect() bool

func (Type) IsSingleSelect Uses

func (t Type) IsSingleSelect() bool

func (Type) IsSlider Uses

func (t Type) IsSlider() bool

func (Type) IsTable Uses

func (t Type) IsTable() bool

func (Type) Name Uses

func (t Type) Name() string

func (Type) SelectedLabel Uses

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

func (Type) String Uses

func (t Type) String() string

Directories

PathSynopsis
select

Package form imports 4 packages (graph) and is imported by 15 packages. Updated 2020-07-10. Refresh now. Tools for package owners.