Documentation
¶
Index ¶
- type Model
- func (m Model) Init() tea.Cmd
- func (m Model) IsActive() bool
- func (m Model) OnAvailWidthChange(width int) layout.LayoutModel
- func (m Model) SetActive() layout.LayoutModel
- func (m *Model) SetLabel(label string)
- func (m *Model) SetText(text string)
- func (m Model) UnsetActive() layout.LayoutModel
- func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m Model) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Provides a base button compontent
func InitialModel ¶
func InitialModel(ctx *context.ProgramContext, label, text string) Model
Get a new button
func (Model) OnAvailWidthChange ¶
func (m Model) OnAvailWidthChange(width int) layout.LayoutModel
func (Model) SetActive ¶
func (m Model) SetActive() layout.LayoutModel
func (Model) UnsetActive ¶
func (m Model) UnsetActive() layout.LayoutModel
Click to show internal directories.
Click to hide internal directories.