16 lines
345 B
Go
16 lines
345 B
Go
package fields
|
|
|
|
import tea "github.com/charmbracelet/bubbletea"
|
|
|
|
// todo комментарии к полям
|
|
// todo описание поля выводить
|
|
type FieldModel interface {
|
|
Init() tea.Cmd
|
|
Update(msg tea.Msg) (FieldModel, tea.Cmd)
|
|
View() string
|
|
Focus()
|
|
Blur()
|
|
CaptureKeys() bool
|
|
GetLabel() string
|
|
GetValue() interface{}
|
|
}
|