Documentation ¶
Index ¶
- func ChangeViewCmd(i int) tea.Cmd
- func NewItemCreatedCmd(i *Item) tea.Cmd
- func NewNewItemView(c *cfg.Cfg) newItemModel
- type BackupConfigView
- type ChangeViewMsg
- type Item
- type MainView
- func (r *MainView) AddItem(i *Item)
- func (r MainView) Init() tea.Cmd
- func (r *MainView) ListItems() []list.Item
- func (r *MainView) ListItemsStr() []string
- func (r *MainView) SelectItem(i int)
- func (r MainView) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (r MainView) UpdateView(ms tea.Msg) (MainView, tea.Cmd)
- func (r MainView) View() string
- type NewItemCreatedMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeViewCmd ¶
func NewItemCreatedCmd ¶
func NewNewItemView ¶
Types ¶
type BackupConfigView ¶
type BackupConfigView struct {
// contains filtered or unexported fields
}
func NewBackupConfigView ¶
func NewBackupConfigView(c *cfg.Cfg) BackupConfigView
func (BackupConfigView) Init ¶
func (m BackupConfigView) Init() tea.Cmd
func (BackupConfigView) UpdateView ¶
func (m BackupConfigView) UpdateView(msg tea.Msg) (BackupConfigView, tea.Cmd)
func (BackupConfigView) View ¶
func (m BackupConfigView) View() string
type ChangeViewMsg ¶
type ChangeViewMsg int
type Item ¶
type Item struct { IsSelected bool // contains filtered or unexported fields }
func (Item) Description ¶
func (Item) FilterValue ¶
type MainView ¶
type MainView struct { List list.Model Input textinput.Model // contains filtered or unexported fields }
func NewMainView ¶
func (*MainView) ListItemsStr ¶
func (*MainView) SelectItem ¶
type NewItemCreatedMsg ¶
type NewItemCreatedMsg struct {
Item *Item
}
Click to show internal directories.
Click to hide internal directories.