orgFormModal

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderCreator

func RenderCreator() protocol.CompRender

Types

type FormData

type FormData struct {
	Name        string `json:"name"`
	DisplayName string `json:"displayName"`
	Desc        string `json:"desc"`
	IsPublic    bool   `json:"isPublic"`
}

type OrgFormModal

type OrgFormModal struct {
	Name       string                 `json:"name"`
	Type       string                 `json:"type"`
	Operations map[string]interface{} `json:"operations"`
	Props      Props                  `json:"props"`
	State      State                  `json:"state"`
	// contains filtered or unexported fields
}

func (*OrgFormModal) GenComponentState

func (this *OrgFormModal) GenComponentState(c *apistructs.Component) error

func (*OrgFormModal) SetCtxBundle

func (o *OrgFormModal) SetCtxBundle(ctx context.Context) error

func (*OrgFormModal) SetProps

func (o *OrgFormModal) SetProps()

type Props

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

type State

type State struct {
	Visible  bool     `json:"visible"`
	FormData FormData `json:"formData"`
}

Jump to

Keyboard shortcuts

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