fileFormModal

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderCreator

func RenderCreator() protocol.CompRender

Types

type ComponentFileFormModal

type ComponentFileFormModal struct {
	CtxBdl     protocol.ContextBundle
	Props      Props                  `json:"props"`
	State      State                  `json:"state"`
	Operations map[string]interface{} `json:"operations"`
}

func (*ComponentFileFormModal) AddRefSceneSet

func (a *ComponentFileFormModal) AddRefSceneSet(ctxBdl protocol.ContextBundle, inParams fileTree.InParams) error

func (*ComponentFileFormModal) AddScene

func (a *ComponentFileFormModal) AddScene(ctxBdl protocol.ContextBundle, inParams fileTree.InParams) error

func (*ComponentFileFormModal) AddSceneSet

func (a *ComponentFileFormModal) AddSceneSet(ctxBdl protocol.ContextBundle, inParams fileTree.InParams) error

func (*ComponentFileFormModal) GetScene

func (a *ComponentFileFormModal) GetScene(ctxBdl protocol.ContextBundle, inParams fileTree.InParams) error

func (*ComponentFileFormModal) GetSceneSet

func (a *ComponentFileFormModal) GetSceneSet(ctxBdl protocol.ContextBundle) error

func (*ComponentFileFormModal) SetBundle

func (*ComponentFileFormModal) UpdateScene

func (a *ComponentFileFormModal) UpdateScene(ctxBdl protocol.ContextBundle, inParams fileTree.InParams) error

func (*ComponentFileFormModal) UpdateSceneSet

func (a *ComponentFileFormModal) UpdateSceneSet(ctxBdl protocol.ContextBundle, 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"`
}

type Operation

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

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"`
}

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