Documentation ¶
Index ¶
- type SelectionList
- func (s *SelectionList) Configure(items []string, onSelect func(int, string) error)
- func (s *SelectionList) Draw(cvs *canvas.Canvas, meta *widgetapi.Meta) error
- func (s *SelectionList) Keyboard(k *terminalapi.Keyboard, meta *widgetapi.EventMeta) error
- func (s *SelectionList) Mouse(m *terminalapi.Mouse, meta *widgetapi.EventMeta) error
- func (s *SelectionList) Options() widgetapi.Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SelectionList ¶
SelectionList displays a list of item which can be selected.
Each line represents an actionable item.
Implements widgetapi.Widget. This object is thread-safe.
func New ¶
func New() (*SelectionList, error)
func (*SelectionList) Configure ¶
func (s *SelectionList) Configure(items []string, onSelect func(int, string) error)
func (*SelectionList) Keyboard ¶
func (s *SelectionList) Keyboard(k *terminalapi.Keyboard, meta *widgetapi.EventMeta) error
func (*SelectionList) Mouse ¶ added in v0.7.4
func (s *SelectionList) Mouse(m *terminalapi.Mouse, meta *widgetapi.EventMeta) error
func (*SelectionList) Options ¶
func (s *SelectionList) Options() widgetapi.Options
Click to show internal directories.
Click to hide internal directories.