dialog

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dialog

func Dialog(options Options) (string, error)

MessageDialog show a message dialog to the user

Types

type DialogType

type DialogType string
const (
	Info     DialogType = "info"
	Warning  DialogType = "warning"
	Error    DialogType = "error"
	Question DialogType = "question"
)

type Options

type Options struct {
	Type          DialogType
	Title         string
	Message       string
	Buttons       []string
	DefaultButton string
	CancelButton  string
	Icon          []byte
}

MessageDialogOptions contains the options for the Message dialogs, EG Info, Warning, etc runtime methods

Jump to

Keyboard shortcuts

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