components

package
v2.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 2 Imported by: 100

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Charter

type Charter interface {
	Type() string
	GetAssets() opts.Assets
	FillDefaultValues()
	Validate()
}

Charter represents a chart value which provides its type, assets and can be validated.

type Layout added in v2.2.0

type Layout string
const (
	PageNoneLayout   Layout = "none"
	PageCenterLayout Layout = "center"
	PageFlexLayout   Layout = "flex"
)

type Page

type Page struct {
	render.Renderer
	opts.Initialization
	opts.Assets

	Charts []Charter
	Layout Layout
}

Page represents a page chart.

func NewPage

func NewPage() *Page

NewPage creates a new page.

func (*Page) AddCharts

func (page *Page) AddCharts(charts ...Charter) *Page

AddCharts adds new charts to the page.

func (*Page) SetLayout added in v2.2.0

func (page *Page) SetLayout(layout Layout) *Page

SetLayout sets the layout of the Page.

func (*Page) Validate

func (page *Page) Validate()

Validate validates the given configuration.

Jump to

Keyboard shortcuts

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