Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultInputKeyMap = InputKeyMap{ SUBMIT: key.NewBinding(key.WithKeys("enter"), key.WithHelp("enter", "submit")), CANCEL: key.NewBinding(key.WithKeys("esc"), key.WithHelp("esc", "cancel")), }
View Source
var DefaultKeyMap = KeyMap{ PREV: key.NewBinding(key.WithKeys("up", "k"), key.WithHelp("↑/k", "previous")), NEXT: key.NewBinding(key.WithKeys("down", "j"), key.WithHelp("↓/j", "next")), FOCUS: key.NewBinding(key.WithKeys("enter"), key.WithHelp("enter", "focus")), CLEAR: key.NewBinding(key.WithKeys("ctrl+l"), key.WithHelp("ctrl+l", "clear")), }
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
func NewField ¶
func NewField(name, id, defaultVal string, options ...FieldOption) Field
type FieldOption ¶
type FieldOption func(*Field)
func UpdatesFrom ¶
func UpdatesFrom(concatChar rune, fields ...int) FieldOption
func WithLink ¶
func WithLink(linkedField ...int) FieldOption
type FieldValue ¶
type InputKeyMap ¶
func (InputKeyMap) FullHelp ¶
func (k InputKeyMap) FullHelp() [][]key.Binding
func (InputKeyMap) ShortHelp ¶
func (k InputKeyMap) ShortHelp() []key.Binding
Click to show internal directories.
Click to hide internal directories.