Documentation ¶
Index ¶
- func NewErrCmd(description string) tea.Cmd
- func NewErrCmds(descriptions ...string) []tea.Cmd
- func NewHelpCmd(h [][]key.Binding) tea.Cmd
- func NewMessageCmd(message string, opts ...SetMessageOpts) tea.Cmd
- func NewTitleCmd(title string, opts ...SetTitleOpts) tea.Cmd
- type Model
- func (m Model) FullHelp() [][]key.Binding
- func (m Model) GetHeight() int
- func (m Model) Init() tea.Cmd
- func (m *Model) IsActive() bool
- func (m Model) IsInitialized() bool
- func (m *Model) SetActive(active bool)
- func (m *Model) SetWidth(width int)
- func (m Model) ShortHelp() []key.Binding
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
- type SetErrMsg
- type SetHelpMsg
- type SetMessageMsg
- type SetMessageOpts
- type SetTitleMsg
- type SetTitleOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrCmds ¶
func NewMessageCmd ¶
func NewMessageCmd(message string, opts ...SetMessageOpts) tea.Cmd
func NewTitleCmd ¶
func NewTitleCmd(title string, opts ...SetTitleOpts) tea.Cmd
Types ¶
type Model ¶
type Model struct { Title string TitleForeground lipgloss.TerminalColor TitleBackground lipgloss.TerminalColor // contains filtered or unexported fields }
func (Model) IsInitialized ¶
type SetHelpMsg ¶
func NewHelpMsg ¶
func NewHelpMsg(h [][]key.Binding) SetHelpMsg
type SetMessageMsg ¶
type SetMessageMsg struct {
// contains filtered or unexported fields
}
func NewMessageMsg ¶
func NewMessageMsg(message string, opts ...SetMessageOpts) SetMessageMsg
type SetMessageOpts ¶
type SetMessageOpts func(*SetMessageMsg)
func WithMessageTimeout ¶
func WithMessageTimeout(timeout int) SetMessageOpts
type SetTitleMsg ¶
type SetTitleMsg struct {
// contains filtered or unexported fields
}
func NewTitleMsg ¶
func NewTitleMsg(title string, opts ...SetTitleOpts) SetTitleMsg
type SetTitleOpts ¶
type SetTitleOpts func(*SetTitleMsg)
func WithTitleBackground ¶
func WithTitleBackground(bg lipgloss.TerminalColor) SetTitleOpts
func WithTitleForeground ¶
func WithTitleForeground(fg lipgloss.TerminalColor) SetTitleOpts
Click to show internal directories.
Click to hide internal directories.