Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyValuePair ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the model for the horizontal picker component.
func NewModel ¶
func NewModel(options []KeyValuePair, opts ...Option) *Model
func (*Model) GetSelection ¶
func (m *Model) GetSelection() KeyValuePair
func (*Model) Next ¶
func (m *Model) Next()
Next is a helper function for navigating one option forward. It will not go beyond the last option (i.e. len(options) - 1).
func (*Model) Prev ¶
func (m *Model) Prev()
Prev is a helper function for navigating one option backward. It will not go page beyond the first option (i.e. option 0).
Click to show internal directories.
Click to hide internal directories.