Displays a dialog window with spinner widget
Usage #
Let’s create a spinner dialog where user can select a city from a dropdown list.
package main
import (
"fmt"
"github.com/hugmouse/gotermux"
)
func main() {
result := gotermux.TermuxDialogSpinner(
gotermux.TDialogSpinner{
gotermux.TDialogCheckbox{
Values: []string{"New York", "London", "Tokyo", "Paris", "Berlin"},
Title: "Select a city",
}
})
fmt.Printf("%+v", result)
}
Termux API reference #
termux-dialog