yamlDrawer

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: 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 {
	base.DefaultProvider

	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(c *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