flexlayout

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlexLayout

type FlexLayout struct {
	// contains filtered or unexported fields
}

FlexLayout is a flex layout manager.

func New

func New() *FlexLayout

New creates an instance of FlexLayout.

func (*FlexLayout) AddButton added in v0.7.0

func (fl *FlexLayout) AddButton(name string, payload action.Payload, buttonOptions ...component.ButtonOption)

AddButton adds a button the button group for a flex layout.

func (*FlexLayout) AddSection

func (fl *FlexLayout) AddSection() *Section

AddSection adds a new section to the flex layout.

func (*FlexLayout) ToComponent

func (fl *FlexLayout) ToComponent(title string) *component.FlexLayout

ToComponent converts the FlexLayout to a FlexLayout.

type Section

type Section struct {
	Members []SectionMember
}

func NewSection

func NewSection() *Section

func (*Section) Add

func (s *Section) Add(view component.Component, width int) error

type SectionMember

type SectionMember struct {
	View  component.Component
	Width int
}

Jump to

Keyboard shortcuts

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