2025-12-26 17:45:37 +05:00
|
|
|
package fields
|
|
|
|
|
|
|
|
|
|
import tea "github.com/charmbracelet/bubbletea"
|
|
|
|
|
|
2026-01-16 17:44:03 +05:00
|
|
|
// todo комментарии к полям
|
|
|
|
|
// todo описание поля выводить
|
2025-12-26 17:45:37 +05:00
|
|
|
type FieldModel interface {
|
|
|
|
|
Init() tea.Cmd
|
|
|
|
|
Update(msg tea.Msg) (FieldModel, tea.Cmd)
|
|
|
|
|
View() string
|
|
|
|
|
Focus()
|
|
|
|
|
Blur()
|
|
|
|
|
CaptureKeys() bool
|
|
|
|
|
GetLabel() string
|
|
|
|
|
GetValue() interface{}
|
|
|
|
|
}
|