fileFormModal

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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