Documentation
¶
Overview ¶
Package alerts handles showing alerts over the ui with auto-disappear functionality
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAlertMsg ¶
type AddAlertMsg struct {
Msg Alert
}
type Alert ¶
type Alert struct {
Type AlertType
Title string
Message string
Visible bool
// contains filtered or unexported fields
}
Alert hold data, that will appear later on ui
type AlertModel ¶
type AlertModel struct {
// contains filtered or unexported fields
}
func New ¶
func New(t theme.Theme) AlertModel
func (AlertModel) AlertStates ¶
func (m AlertModel) AlertStates( totalWidth int, totalHeight int, ) []AlertState
AlertViews render each alert, then return all strings to be placed properly
func (AlertModel) Update ¶
func (m AlertModel) Update(msg tea.Msg) (AlertModel, tea.Cmd)
Click to show internal directories.
Click to hide internal directories.