checkbox

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

Checkbox

Checkbox Example

The checkbox component allows you to quicky prompt the user to choose multiple options. Move with the arrow keys or JK, select an option with SPACE.

You can found an example with and without options here

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checkbox

func Checkbox(options []string, customOpts ...wtopts.Opts) (checked []bool, err error)

func Draw

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

func HandleKey

func HandleKey(selected *int, checked *[]bool, 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
JackTT - Gopher 🇻🇳