14 lines
249 B
Go
14 lines
249 B
Go
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{}
|
|
}
|