forms

package
v1.2.153 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: GPL-3.0 Imports: 19 Imported by: 1

Documentation

Overview

* Copyright (c) 2023-2024. Author: Ruslan Bikchentaev. All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file. * Перший приватний програміст.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnotherSignUpForm

func AnotherSignUpForm(placeholder string) string

func SignUpForm

func SignUpForm(placeholder string) string

func StreamAnotherSignUpForm

func StreamAnotherSignUpForm(qw422016 *qt422016.Writer, placeholder string)

func StreamSignUpForm

func StreamSignUpForm(qw422016 *qt422016.Writer, placeholder string)

func WriteAnotherSignUpForm

func WriteAnotherSignUpForm(qq422016 qtio422016.Writer, placeholder string)

func WriteSignUpForm

func WriteSignUpForm(qq422016 qtio422016.Writer, placeholder string)

Types

type AnotherMarshalRow

type AnotherMarshalRow struct {
	Msg string
	N   int
}

type AnotherPersonData

type AnotherPersonData struct {
	Id    int
	Login string
	Email string
	Sex   int
	Rows  []MarshalRow
}

func (*AnotherPersonData) JSON

func (d *AnotherPersonData) JSON() string

func (*AnotherPersonData) StreamJSON

func (d *AnotherPersonData) StreamJSON(qw422016 *qt422016.Writer)

func (*AnotherPersonData) WriteJSON

func (d *AnotherPersonData) WriteJSON(qq422016 qtio422016.Writer)

type AttachmentList added in v1.0.11512

type AttachmentList struct {
	Id  int32  `json:"id"`
	Url string `json:"url"`
}

type BlockColumns added in v1.0.330

type BlockColumns struct {
	Id                 int
	Classes            string
	Buttons            []Button
	Columns            []*ColumnDecor
	Multiple           bool
	Title, Description string
}

func NewBlockColumnsFromJSON added in v1.2.34

func NewBlockColumnsFromJSON(val *fastjson.Value, patternList dbEngine.Table) *BlockColumns

type Button added in v1.0.337

type Button struct {
	Id       string
	Classes  string
	Hidden   bool
	Position bool
	Title    string
	Type     string
	OnClick  string
}

type ColumnDecor added in v1.0.322

type ColumnDecor struct {
	dbEngine.Column
	Classes string
	IsHidden, IsDisabled, IsReadOnly, IsSlice, IsNewPrimary,
	SelectWithNew bool
	ExtProperties     *fastjson.Value
	InputType         string
	SpecialInputName  string
	DefaultInputValue string `json:"defaultInputValue,omitempty"`
	Attachments       []AttachmentList
	Events            map[string]string
	SelectOptions     map[string]SelectOption
	PatternList       dbEngine.Table
	PatternName       string
	PlaceHolder       string
	LinkNew           string
	Label             string
	Max               any
	Min               any

	Value             any
	Accept            string
	Suggestions       string
	SuggestionsParams map[string]any
	Step              any
	// contains filtered or unexported fields
}

func NewColumnDecor added in v1.0.3393

func NewColumnDecor(col dbEngine.Column, patternList dbEngine.Table, suggestions ...SuggestionsParams) *ColumnDecor

func NewColumnDecorFromJSON added in v1.2.34

func NewColumnDecorFromJSON(val *fastjson.Value, patternList dbEngine.Table) *ColumnDecor

func (*ColumnDecor) Copy added in v1.0.11512

func (col *ColumnDecor) Copy() *ColumnDecor

Copy make dublicate of Column without Value

func (*ColumnDecor) DataForJSON added in v1.0.3397

func (col *ColumnDecor) DataForJSON() string

func (*ColumnDecor) Each added in v1.2.34

func (col *ColumnDecor) Each(key []byte, val *fastjson.Value)

func (*ColumnDecor) GetFields added in v1.0.3397

func (col *ColumnDecor) GetFields(columns []dbEngine.Column) []any

func (*ColumnDecor) GetValues added in v1.0.322

func (col *ColumnDecor) GetValues() (values []any)

func (*ColumnDecor) InputName added in v1.0.322

func (col *ColumnDecor) InputName(i int) string

func (*ColumnDecor) InputTypeForJSON added in v1.0.3397

func (col *ColumnDecor) InputTypeForJSON() string

func (*ColumnDecor) Pattern added in v1.0.322

func (col *ColumnDecor) Pattern() string

func (*ColumnDecor) Placeholder added in v1.0.324

func (col *ColumnDecor) Placeholder() string

func (*ColumnDecor) RenderAttr added in v1.0.3397

func (col *ColumnDecor) RenderAttr(i int) string

func (*ColumnDecor) RenderInputs added in v1.0.322

func (col *ColumnDecor) RenderInputs(data map[string]any) string

func (*ColumnDecor) RenderValue added in v1.0.11512

func (col *ColumnDecor) RenderValue(value any) string

func (*ColumnDecor) Result added in v1.2.34

func (col *ColumnDecor) Result() (any, error)

func (*ColumnDecor) StreamDataForJSON added in v1.0.3397

func (col *ColumnDecor) StreamDataForJSON(qw422016 *qt422016.Writer)

func (*ColumnDecor) StreamInputTypeForJSON added in v1.0.3397

func (col *ColumnDecor) StreamInputTypeForJSON(qw422016 *qt422016.Writer)

func (*ColumnDecor) StreamRenderAttr added in v1.0.3397

func (col *ColumnDecor) StreamRenderAttr(qw422016 *qt422016.Writer, i int)

func (*ColumnDecor) StreamRenderInputs added in v1.0.322

func (col *ColumnDecor) StreamRenderInputs(qw422016 *qt422016.Writer, data map[string]any)

func (*ColumnDecor) StreamRenderValue added in v1.0.11512

func (col *ColumnDecor) StreamRenderValue(qw422016 *qt422016.Writer, value any)

func (*ColumnDecor) StreamToJSON added in v1.0.11512

func (col *ColumnDecor) StreamToJSON(qw422016 *qt422016.Writer)

func (*ColumnDecor) ToJSON added in v1.0.11512

func (col *ColumnDecor) ToJSON() string

func (*ColumnDecor) Type added in v1.0.322

func (col *ColumnDecor) Type() string

func (*ColumnDecor) WriteDataForJSON added in v1.0.3397

func (col *ColumnDecor) WriteDataForJSON(qq422016 qtio422016.Writer)

func (*ColumnDecor) WriteInputTypeForJSON added in v1.0.3397

func (col *ColumnDecor) WriteInputTypeForJSON(qq422016 qtio422016.Writer)

func (*ColumnDecor) WriteRenderAttr added in v1.0.3397

func (col *ColumnDecor) WriteRenderAttr(qq422016 qtio422016.Writer, i int)

func (*ColumnDecor) WriteRenderInputs added in v1.0.322

func (col *ColumnDecor) WriteRenderInputs(qq422016 qtio422016.Writer, data map[string]any)

func (*ColumnDecor) WriteRenderValue added in v1.0.11512

func (col *ColumnDecor) WriteRenderValue(qq422016 qtio422016.Writer, value any)

func (*ColumnDecor) WriteToJSON added in v1.0.11512

func (col *ColumnDecor) WriteToJSON(qq422016 qtio422016.Writer)

type FormField added in v1.0.330

type FormField struct {
	Action, Classes, Method, Description, Title string
	HideBlock                                   any
	Blocks                                      []BlockColumns
}

func (*FormField) Create added in v1.2.35

func (f *FormField) Create(repo, packageName, unitName string) string

func (*FormField) FormHTML added in v1.0.331

func (f *FormField) FormHTML() string

func (*FormField) FormJSON added in v1.0.330

func (f *FormField) FormJSON() string

func (*FormField) RenderForm added in v1.0.11512

func (f *FormField) RenderForm(isHTML bool) string

func (*FormField) StreamCreate added in v1.2.35

func (f *FormField) StreamCreate(qw422016 *qt422016.Writer, repo, packageName, unitName string)

func (*FormField) StreamFormHTML added in v1.0.331

func (f *FormField) StreamFormHTML(qw422016 *qt422016.Writer)

func (*FormField) StreamFormJSON added in v1.0.330

func (f *FormField) StreamFormJSON(qw422016 *qt422016.Writer)

func (*FormField) StreamRenderForm added in v1.0.11512

func (f *FormField) StreamRenderForm(qw422016 *qt422016.Writer, isHTML bool)

func (*FormField) WriteCreate added in v1.2.35

func (f *FormField) WriteCreate(qq422016 qtio422016.Writer, repo, packageName, unitName string)

func (*FormField) WriteFormHTML added in v1.0.331

func (f *FormField) WriteFormHTML(qq422016 qtio422016.Writer)

func (*FormField) WriteFormJSON added in v1.0.330

func (f *FormField) WriteFormJSON(qq422016 qtio422016.Writer)

func (*FormField) WriteRenderForm added in v1.0.11512

func (f *FormField) WriteRenderForm(qq422016 qtio422016.Writer, isHTML bool)

type MarshalRow

type MarshalRow struct {
	Msg string
	N   int
}

type PersonData

type PersonData struct {
	Id    int
	Login string
	Email string
	Sex   int
	Rows  []MarshalRow
}

func (*PersonData) JSON

func (d *PersonData) JSON() string

func (*PersonData) StreamJSON

func (d *PersonData) StreamJSON(qw422016 *qt422016.Writer)

func (*PersonData) WriteJSON

func (d *PersonData) WriteJSON(qq422016 qtio422016.Writer)

type SelectOption added in v1.2.34

type SelectOption struct {
	Disabled, Selected bool
	Value              string
}

type SignForm

type SignForm struct {
	Email, Password string
}

func (*SignForm) SigningForm added in v1.2.14

func (sf *SignForm) SigningForm() string

func (*SignForm) StreamSigningForm added in v1.2.14

func (sf *SignForm) StreamSigningForm(qw422016 *qt422016.Writer)

func (*SignForm) WriteSigningForm added in v1.2.14

func (sf *SignForm) WriteSigningForm(qq422016 qtio422016.Writer)

type SpecialInput added in v1.2.137

type SpecialInput uint8
const (
	InputNone SpecialInput = iota
	InputMap
)

type SuggestionsParams added in v1.2.19

type SuggestionsParams struct {
	Key   string
	Value any
}

Jump to

Keyboard shortcuts

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