selectInput

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package multiInput provides functions that help define and draw a multi-input step

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitialSelectInputModel

func InitialSelectInputModel(choices []steps.Item, selection *Selection, header string, other bool, program *program.Program) model

InitialSelectInputModel initializes a multiInput step with the given data

Types

type Selection

type Selection struct {
	Choice string
}

A Selection represents a choice made in a multiInput step

func (*Selection) Update

func (s *Selection) Update(value string)

Update changes the value of a Selection's Choice

Jump to

Keyboard shortcuts

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