yamlDrawer

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentYamlDrawer

type ComponentYamlDrawer struct {
	Type  string `json:"type,omitempty"`
	Props Props  `json:"props"`
	State State  `json:"state"`
	// contains filtered or unexported fields
}

func (*ComponentYamlDrawer) GenComponentState

func (d *ComponentYamlDrawer) GenComponentState(component *cptype.Component) error

func (*ComponentYamlDrawer) InitComponent

func (d *ComponentYamlDrawer) InitComponent(ctx context.Context)

func (*ComponentYamlDrawer) Render

func (*ComponentYamlDrawer) Transfer

func (d *ComponentYamlDrawer) Transfer(component *cptype.Component)

type Props

type Props struct {
	Title string `json:"title,omitempty"`
	Size  string `json:"size,omitempty"`
}

type State

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

Jump to

Keyboard shortcuts

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