multiSelect

package
v0.10.4-0...-03c1e77 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package multiSelect provides functions that help define and draw a multi-select step

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitialModelMultiSelect

func InitialModelMultiSelect(options []steps.Item, selection *Selection, header string, program *program.Project) model

InitialModelMulti initializes a multiSelect step with the given data

Types

type Selection

type Selection struct {
	Choices map[string]bool
}

A Selection represents a choice made in a multiSelect step

func (*Selection) Update

func (s *Selection) Update(optionName string, value bool)

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