Documentation
¶
Index ¶
- Constants
- func CheckBox(name string, data model.SourceData, options ...string) *model.Input
- func DataList(name string, data model.SourceData) *model.Input
- func Date() *model.Input
- func DateAge(options ...string) *model.Input
- func DayWord(options ...string) *model.Input
- func DvRut(rut int) string
- func FilePath(options ...string) *model.Input
- func Hour(options ...string) *model.Input
- func Info(value string) *model.Input
- func Ip() *model.Input
- func Mail() *model.Input
- func MonthDay(options ...string) *model.Input
- func Number(options ...string) *model.Input
- func Password(options ...string) *model.Input
- func Phone() *model.Input
- func Radio(name string, data model.SourceData) *model.Input
- func RadioGender() *model.Input
- func RunData(runIn string) (data []string, onlyRun int, err string)
- func Rut(options ...string) *model.Input
- func SelecTag(name string, data model.SourceData) *model.Input
- func Text(options ...string) *model.Input
- func TextArea(options ...string) *model.Input
- func TextNum() *model.Input
- func TextNumCode() *model.Input
- func TextOnly(options ...string) *model.Input
- func TextSearch() *model.Input
- type Permitted
Constants ¶
const DefaultValidateFunction = `userFormTyping(this)`
Variables ¶
This section is empty.
Functions ¶
func CheckBox ¶ added in v0.0.23
name ej: TypeUser SourceData() map[string]string options ej: "internal" = only internal contend
func DataList ¶
func DataList(name string, data model.SourceData) *model.Input
name ej: InputOptions SourceData() map[string]string
func Number ¶
options ej: data-type, data-after=" Años" hidden, el campo se mantendrá oculto title="xxx" for phone ej: `min="7"`, `max="11"`
func Password ¶
options: ej: min="2", max="10", hidden.... min mínimo de caracteres permitidos ej: 3 o 5 ... min default 5 max máximo de caracteres permitidos ej: 20 50 ... max default 50 Pattern_start="^[A-Za-zÑñ 0-9:.-]{" Pattern_end="}$"
func Radio ¶
func Radio(name string, data model.SourceData) *model.Input
name ej: FileType,RadioGender... SourceData() map[string]string default: {"1": "Opción 1", "2": "Opción 2"}
func RadioGender ¶ added in v0.0.46
ej: {"f": "Femenino", "m": "Masculino"}.
func Rut ¶
parámetro opcionales: hide-typing: ocultar información al escribir dni-mode: acepta documentos extranjeros
func SelecTag ¶
func SelecTag(name string, data model.SourceData) *model.Input
name ej: OptionUser SourceData() map[string]string
func Text ¶
parámetros opcionales: "hidden" si se vera oculto o no. placeholder="Escriba Nombre y dos apellidos" title="xxx"
func TextArea ¶
options: pattern="`^[a-zA-Z 0-9\:\.\,\+\-]{0,30}$`" title="permitido letras números - , :" cols="2" default 1 rows="8" default 3
func TextNumCode ¶
func TextSearch ¶
Types ¶
type Permitted ¶ added in v0.0.25
type Permitted struct { Letters bool Tilde bool Numbers bool BreakLine bool // saltos de linea permitidos WhiteSpaces bool // permitidos espacios en blanco Tabulation bool // permitido tabular Characters []rune // otros caracteres especiales ej: '\','/','@' Minimum int //caracteres min ej 2 "lo" ok default 0 no defined Maximum int //caracteres max ej 1 "l" ok default 0 no defined }
Source Files
¶
- CheckBox-Crud.go
- CheckBox-Tag.go
- CheckBox.go
- Radio-options.go
- add-default.go
- add-tools.go
- attrib-build-tag.go
- attrib-model.go
- attrib-set.go
- datalist.go
- datalist_tag.go
- datalist_test_data.go
- date.go
- dateage.go
- dayword.go
- dayword_register.go
- filePath.go
- hour.go
- info.go
- ip.go
- mail.go
- monthDay.go
- number.go
- password.go
- radio.go
- radio_tag.go
- rut-test-data.go
- rut.go
- rut_validate.go
- select.go
- select_tag.go
- text.go
- textArea.go
- textArea_testing_data.go
- textNum.go
- textNumCode.go
- textOnly.go
- textSearch.go
- valid.go
- xtra-test-data.go