container

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

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

func New

func New(focusable bool, containerType utils.ContainerType, elements ...obj.Element) Container

func NewSimpleContainer

func NewSimpleContainer(focusable bool, elements ...obj.Element) Container

func (Container) AddElements

func (c Container) AddElements(elements ...obj.Element) obj.Collection

func (Container) Blur

func (c Container) Blur() obj.Collection

func (Container) Elements

func (c Container) Elements() []obj.Element

func (Container) Focus

func (c Container) Focus() obj.Collection

func (Container) FocusFromEnd

func (c Container) FocusFromEnd() obj.Collection

func (Container) FocusFromStart

func (c Container) FocusFromStart() obj.Collection

func (Container) FocusNext

func (c Container) FocusNext() (obj.Collection, tea.Cmd)

func (Container) FocusPrev

func (c Container) FocusPrev() (obj.Collection, tea.Cmd)

func (Container) Focusable

func (c Container) Focusable() bool

func (Container) Focused

func (c Container) Focused() bool

func (Container) GetElementByID

func (c Container) GetElementByID(id int) obj.Accessor

func (Container) Update

func (c Container) Update(msg tea.Msg) (obj.Element, tea.Cmd)

func (Container) View

func (c Container) View(bool) string

Jump to

Keyboard shortcuts

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