form_modal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentProps

type ComponentProps struct {
	MaxLength int `json:"maxLength"`
}

type Field

type Field struct {
	Key            string         `json:"key"`
	Label          string         `json:"label"`
	Required       bool           `json:"required"`
	Component      string         `json:"component"`
	Rules          []FieldRule    `json:"rules,omitempty"`
	ComponentProps ComponentProps `json:"componentProps"`
}

type FieldRule

type FieldRule struct {
	Pattern string `json:"pattern"`
	Msg     string `json:"msg"`
}

type Props

type Props struct {
	Width      int                    `json:"width,omitempty"`
	Name       string                 `json:"name"`
	Title      string                 `json:"title"`
	Visible    bool                   `json:"visible"`
	Fields     []Field                `json:"fields,omitempty"`
	FormData   map[string]interface{} `json:"formData,omitempty"`
	FormRef    interface{}            `json:"formRef,omitempty"`
	ModalProps map[string]interface{} `json:"modalProps,omitempty"`
}

Jump to

Keyboard shortcuts

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