README ¶ Selection The selection component allows you to quickly prompt the user to choose an option. Move with the arrow keys or JK, select an option with CR. You can found an example with and without options here Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Draw(selected *int, options *[]string, opts wtopts.Opts) []string func HandleKey(selected *int, options *[]string, key string, opts wtopts.Opts) error func Selection(options []string, customOpts ...wtopts.Opts) (result int, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Draw ¶ func Draw(selected *int, options *[]string, opts wtopts.Opts) []string func HandleKey ¶ func HandleKey(selected *int, options *[]string, key string, opts wtopts.Opts) error func Selection ¶ func Selection(options []string, customOpts ...wtopts.Opts) (result int, err error) Types ¶ This section is empty. Source Files ¶ View all Source files selection.go Directories ¶ Show internal Expand all Path Synopsis example Click to show internal directories. Click to hide internal directories.