Documentation
¶
Index ¶
- type AbstractComponent
- type Collection
- type ComplexContainer
- func (cc ComplexContainer) AddComponents(components ...Component) Collection
- func (cc ComplexContainer) Blur() Component
- func (cc ComplexContainer) Components() []Component
- func (cc ComplexContainer) Focus() Component
- func (cc ComplexContainer) FocusFromEnd() Component
- func (cc ComplexContainer) FocusFromStart() Component
- func (cc ComplexContainer) FocusNext() (Component, tea.Cmd)
- func (cc ComplexContainer) FocusPrev() (Component, tea.Cmd)
- func (cc ComplexContainer) GetElementByID(id int) (Component, obj.Accessor)
- func (cc ComplexContainer) Hide() Component
- func (cc ComplexContainer) Type() utils.ContainerType
- func (cc ComplexContainer) Unhide() Component
- func (cc ComplexContainer) Update(msg tea.Msg) (obj.Element, tea.Cmd)
- func (cc ComplexContainer) View(bool) string
- type Component
- type Container
- type SimpleContainer
- func (sc SimpleContainer) Blur() Component
- func (sc SimpleContainer) Element() obj.Element
- func (sc SimpleContainer) Focus() Component
- func (sc SimpleContainer) FocusFromEnd() Component
- func (sc SimpleContainer) FocusFromStart() Component
- func (sc SimpleContainer) FocusNext() (Component, tea.Cmd)
- func (sc SimpleContainer) FocusPrev() (Component, tea.Cmd)
- func (sc SimpleContainer) GetElementByID(id int) (Component, obj.Accessor)
- func (sc SimpleContainer) Hide() Component
- func (sc SimpleContainer) Unhide() Component
- func (sc SimpleContainer) Update(msg tea.Msg) (obj.Element, tea.Cmd)
- func (sc SimpleContainer) View(bool) string
- type Wrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractComponent ¶ added in v1.3.0
type Collection ¶ added in v1.3.0
type Collection interface {
Component
Type() utils.ContainerType
Components() []Component
AddComponents(...Component) Collection
}
type ComplexContainer ¶ added in v1.3.0
type ComplexContainer struct {
Container
// contains filtered or unexported fields
}
func NewComplexContainer ¶ added in v1.3.0
func NewComplexContainer( focusable bool, containerType utils.ContainerType, components ...Component, ) ComplexContainer
func (ComplexContainer) AddComponents ¶ added in v1.3.0
func (cc ComplexContainer) AddComponents(components ...Component) Collection
func (ComplexContainer) Blur ¶ added in v1.3.0
func (cc ComplexContainer) Blur() Component
func (ComplexContainer) Components ¶ added in v1.3.0
func (cc ComplexContainer) Components() []Component
func (ComplexContainer) Focus ¶ added in v1.3.0
func (cc ComplexContainer) Focus() Component
func (ComplexContainer) FocusFromEnd ¶ added in v1.3.0
func (cc ComplexContainer) FocusFromEnd() Component
func (ComplexContainer) FocusFromStart ¶ added in v1.3.0
func (cc ComplexContainer) FocusFromStart() Component
func (ComplexContainer) FocusNext ¶ added in v1.3.0
func (cc ComplexContainer) FocusNext() (Component, tea.Cmd)
func (ComplexContainer) FocusPrev ¶ added in v1.3.0
func (cc ComplexContainer) FocusPrev() (Component, tea.Cmd)
func (ComplexContainer) GetElementByID ¶ added in v1.3.0
func (cc ComplexContainer) GetElementByID(id int) (Component, obj.Accessor)
func (ComplexContainer) Hide ¶ added in v1.3.0
func (cc ComplexContainer) Hide() Component
implementing Component
func (ComplexContainer) Type ¶ added in v1.3.0
func (cc ComplexContainer) Type() utils.ContainerType
implementing Collection
func (ComplexContainer) Unhide ¶ added in v1.3.0
func (cc ComplexContainer) Unhide() Component
func (ComplexContainer) View ¶ added in v1.3.0
func (cc ComplexContainer) View(bool) string
type SimpleContainer ¶ added in v1.3.0
type SimpleContainer struct {
Container
// contains filtered or unexported fields
}
func NewSimpleContainer ¶
func NewSimpleContainer(focusable bool, element obj.Element) SimpleContainer
func (SimpleContainer) Blur ¶ added in v1.3.0
func (sc SimpleContainer) Blur() Component
func (SimpleContainer) Element ¶ added in v1.3.0
func (sc SimpleContainer) Element() obj.Element
implementing Wrapper
func (SimpleContainer) Focus ¶ added in v1.3.0
func (sc SimpleContainer) Focus() Component
func (SimpleContainer) FocusFromEnd ¶ added in v1.3.0
func (sc SimpleContainer) FocusFromEnd() Component
func (SimpleContainer) FocusFromStart ¶ added in v1.3.0
func (sc SimpleContainer) FocusFromStart() Component
func (SimpleContainer) FocusNext ¶ added in v1.3.0
func (sc SimpleContainer) FocusNext() (Component, tea.Cmd)
func (SimpleContainer) FocusPrev ¶ added in v1.3.0
func (sc SimpleContainer) FocusPrev() (Component, tea.Cmd)
func (SimpleContainer) GetElementByID ¶ added in v1.3.0
func (sc SimpleContainer) GetElementByID(id int) (Component, obj.Accessor)
func (SimpleContainer) Hide ¶ added in v1.3.0
func (sc SimpleContainer) Hide() Component
implementing Component
func (SimpleContainer) Unhide ¶ added in v1.3.0
func (sc SimpleContainer) Unhide() Component
func (SimpleContainer) View ¶ added in v1.3.0
func (sc SimpleContainer) View(bool) string
Click to show internal directories.
Click to hide internal directories.