combobox

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 8 Imported by: 0

README

Combobox

Combobox Example

The combobox component allows you to quickly prompt the user to choose an option. Move with the arrow keys or JK, select an option with CR, and change the filter with other keys.

You can found an example with and without options here

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Combobox

func Combobox(options []string, customOpts ...wtopts.Opts) (result int, err error)

func Draw

func Draw(selected *int, options *[]string, filter *string, opts wtopts.Opts) []string

func HandleKey

func HandleKey(selected *int, options *[]string, filter *string, key string, opts wtopts.Opts) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL