numberpicker

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: 11 Imported by: 0

README

Number Picker

Number Picker Example

The numberpicker component allows you to quickly prompt the user to choose a number. Increment/Decrement with the arrow keys or HJ/KL, type a number to change the input, and validate with CR. You can change 'Maximum, Minimum, Increment, Decimals' through Opts.

You can found an example with and without options here

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Draw

func Draw(number *string, opts wtopts.Opts) []string

func HandleKey

func HandleKey(number *string, key string, opts wtopts.Opts) error

func NumberPicker

func NumberPicker(customOpts ...wtopts.Opts) (result float64, err 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