forms

package
v1.2.32 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: GPL-3.0 Imports: 16 Imported by: 1

Documentation

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 {
	Buttons            []Button
	Columns            []*ColumnDecor
	Id                 int
	Multiple           bool
	Title, Description string
}

type Button added in v1.0.337

type Button struct {
	Title      string
	Position   bool
	ButtonType string
	OnClick    string
}

type ColumnDecor added in v1.0.322

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

	Value             any
	Suggestions       string
	SuggestionsParams map[string]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 (*ColumnDecor) Copy added in v1.0.11512

func (col *ColumnDecor) Copy() *ColumnDecor

func (*ColumnDecor) DataForJSON added in v1.0.3397

func (col *ColumnDecor) DataForJSON() string

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) 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 {
	Title, Action, Method, Description string
	HideBlock                          any
}

func (*FormField) FormHTML added in v1.0.331

func (f *FormField) FormHTML(blocks ...BlockColumns) string

func (*FormField) FormJSON added in v1.0.330

func (f *FormField) FormJSON(blocks ...BlockColumns) string

func (*FormField) RenderForm added in v1.0.11512

func (f *FormField) RenderForm(isHTML bool, blocks ...BlockColumns) string

func (*FormField) StreamFormHTML added in v1.0.331

func (f *FormField) StreamFormHTML(qw422016 *qt422016.Writer, blocks ...BlockColumns)

func (*FormField) StreamFormJSON added in v1.0.330

func (f *FormField) StreamFormJSON(qw422016 *qt422016.Writer, blocks ...BlockColumns)

func (*FormField) StreamRenderForm added in v1.0.11512

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

func (*FormField) WriteFormHTML added in v1.0.331

func (f *FormField) WriteFormHTML(qq422016 qtio422016.Writer, blocks ...BlockColumns)

func (*FormField) WriteFormJSON added in v1.0.330

func (f *FormField) WriteFormJSON(qq422016 qtio422016.Writer, blocks ...BlockColumns)

func (*FormField) WriteRenderForm added in v1.0.11512

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

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 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 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