Documentation
¶
Overview ¶
This package provides basic constants used by go-form-it packages.
Index ¶
- Constants
- Variables
- func CachedTemplate(cachedKey string) (r *template.Template, ok bool)
- func ClearCachedTemplate()
- func CreateUrl(widget string) string
- func ParseTmpl(data interface{}, fn_tpl template.FuncMap, ...) string
- func SetCachedTemplate(cachedKey string, tmpl *template.Template) bool
- func Tag(t reflect.Type, fieldNo int, tagName string) string
Constants ¶
View Source
const ( BUTTON = "button" CHECKBOX = "checkbox" COLOR = "color" // Not yet implemented DATE = "date" DATETIME = "datetime" DATETIME_LOCAL = "datetime-local" EMAIL = "email" // Not yet implemented FILE = "file" // Not yet implemented HIDDEN = "hidden" IMAGE = "image" // Not yet implemented MONTH = "month" // Not yet implemented NUMBER = "number" PASSWORD = "password" RADIO = "radio" RANGE = "range" RESET = "reset" SEARCH = "search" // Not yet implemented SUBMIT = "submit" TEL = "tel" // Not yet implemented TEXT = "text" TIME = "time" URL = "url" // Not yet implemented WEEK = "week" // Not yet implemented TEXTAREA = "textarea" SELECT = "select" STATIC = "static" )
Input field types
View Source
const ( BASE = "base" BOOTSTRAP = "bootstrap3" )
Available form styles
View Source
const (
PACKAGE_NAME = "github.com/coscms/forms"
)
Variables ¶
Functions ¶
func ClearCachedTemplate ¶
func ClearCachedTemplate()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.