fileFormModal

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentFileFormModal

type ComponentFileFormModal struct {
	base.DefaultProvider

	Props      Props                  `json:"props"`
	State      State                  `json:"state"`
	Operations map[string]interface{} `json:"operations"`
	// contains filtered or unexported fields
}

func (*ComponentFileFormModal) AddRefSceneSet

func (a *ComponentFileFormModal) AddRefSceneSet(inParams fileTree.InParams) error

func (*ComponentFileFormModal) AddScene

func (a *ComponentFileFormModal) AddScene(inParams fileTree.InParams) error

func (*ComponentFileFormModal) AddSceneSet

func (a *ComponentFileFormModal) AddSceneSet(inParams fileTree.InParams) error

func (*ComponentFileFormModal) CopyTo

func (a *ComponentFileFormModal) CopyTo(inParams fileTree.InParams) error

func (*ComponentFileFormModal) GetScene

func (a *ComponentFileFormModal) GetScene(inParams fileTree.InParams) error

func (*ComponentFileFormModal) GetSceneSet

func (a *ComponentFileFormModal) GetSceneSet() error

func (*ComponentFileFormModal) Render

func (*ComponentFileFormModal) UpdateScene

func (a *ComponentFileFormModal) UpdateScene(inParams fileTree.InParams) error

func (*ComponentFileFormModal) UpdateSceneSet

func (a *ComponentFileFormModal) UpdateSceneSet(inParams fileTree.InParams) error

type ComponentProps

type ComponentProps struct {
	MaxLength   int           `json:"maxLength"`
	Placeholder string        `json:"placeholder"`
	Options     []interface{} `json:"options"`
}

type Entry

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

type FormData

type FormData struct {
	Name        string `json:"name"`
	Description string `json:"desc"`
	// SetID       uint64 `json:"setId"`
	ScenesSet *uint64               `json:"scenesSet"`
	Policy    apistructs.PolicyType `json:"policy"`
	SceneID   uint64                `json:"sceneID"`
}

type Operation

type Operation struct {
	Key    string `json:"key"`
	Reload bool   `json:"reload"`
}

type PolicyOption

type PolicyOption struct {
	Name  string                `json:"name"`
	Value apistructs.PolicyType `json:"value"`
}

type Props

type Props struct {
	Title  string  `json:"title"`
	Fields []Entry `json:"fields"`
}

type Rule

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

type State

type State struct {
	FormVisible   bool     `json:"formVisible"`
	SceneSetKey   int      `json:"sceneSetKey"`
	Visible       bool     `json:"visible"`
	FormData      FormData `json:"formData"`
	ActionType    string   `json:"actionType"`
	SceneId       uint64   `json:"sceneId"`
	IsAddParallel bool     `json:"isAddParallel"`
}

type SubmitOperations

type SubmitOperations struct {
	Key    string `json:"key"`
	Reload bool   `json:"reload"`
}

Jump to

Keyboard shortcuts

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