Documentation
¶
Index ¶
- func Batch(cmds ...tea.Cmd) tea.Cmd
- func Cmd(m CmdModel) tea.Cmd
- func Filter(m tea.Model, msg tea.Msg) tea.Msg
- func InitNested(m NestedModel) tea.Cmd
- func Nest(model IDModel, cmd tea.Cmd) tea.Cmd
- func Sequence(cmds ...tea.Cmd) tea.Cmd
- func Tick(m TickModel) tea.Cmd
- func UpdateTickModel(m TickModel, msg tea.Msg) tea.Cmd
- type BatchMsg
- type CmdModel
- type FocusModel
- type FrameMsg
- type IDModel
- type IDMsg
- type NestedModel
- type NestedMsg
- type SequenceMsg
- type TickModel
- type TickMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
Filter filters out SequenceMsg and BatchMsg and transforms them to official Sequence and Batch tea.Msg. This brings support to nested models.
Types ¶
type FocusModel ¶
FocusModel is a model that can be focused.
type NestedModel ¶
type NestedModel interface {
IDModels() []IDModel
UpdateNestedMsg(NestedMsg) (NestedModel, tea.Cmd)
tea.Model
}
NestedModel is a model that has nested models.
func UpdateNestedModel ¶
func UpdateNestedModel(m NestedModel, msg tea.Msg) (NestedModel, tea.Cmd)
UpdateNested passed the dedicated tea.Msg to nested model.
type SequenceMsg ¶
SequenceMsg is a message that represents a sequence of tea.Cmd.
Click to show internal directories.
Click to hide internal directories.