GoSetup-bubble/setup/fields/fieldModel.go

15 lines
249 B
Go
Raw Normal View History

2025-12-26 17:45:37 +05:00
package fields
import tea "github.com/charmbracelet/bubbletea"
type FieldModel interface {
Init() tea.Cmd
Update(msg tea.Msg) (FieldModel, tea.Cmd)
View() string
Focus()
Blur()
CaptureKeys() bool
GetLabel() string
GetValue() interface{}
}