formui

package module
v0.0.0-...-9d4f740 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

README

FormUI

Forms for Fyne.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFormFromStruct

func BuildFormFromStruct(v any) *widget.Form

func NewListSelect

func NewListSelect(onSelected func(i int, v string), items []string) *widget.List

func NewListView

func NewListView(items []string) *widget.List

func ResizeDialog

func ResizeDialog(weight, height int, d dialog.Dialog) dialog.Dialog

Types

type ListEdit

type ListEdit struct {
	Elements []any
	Widget   fyne.CanvasObject
	Update   func()
}

func NewListEdit

func NewListEdit(elements []any, toString func(e any) string, labels []string, add ...func()) *ListEdit

func (*ListEdit) Append

func (l *ListEdit) Append(e any)

type Window

type Window struct {
	fyne.Window
}

func (Window) NewDialog

func (w Window) NewDialog(title string, object fyne.CanvasObject) dialog.Dialog

func (Window) NewDialogWithConfirm

func (w Window) NewDialogWithConfirm(title, confirm, dismiss string, callback func(), object fyne.CanvasObject) dialog.Dialog

func (Window) NewDialogWithWait

func (w Window) NewDialogWithWait(title string, object fyne.CanvasObject) (dialog.Dialog, func())

func (Window) NewDirOpenDialog

func (w Window) NewDirOpenDialog(onSelected func(path string)) dialog.Dialog

func (Window) NewDirOpenEntry

func (w Window) NewDirOpenEntry(entry *widget.Entry) *fyne.Container

func (Window) NewEntryWithFill

func (w Window) NewEntryWithFill(entry *widget.Entry, title string, callback func(d dialog.Dialog), items []string) *fyne.Container

func (Window) NewFileOpenDialog

func (w Window) NewFileOpenDialog(onSelected func(path string)) dialog.Dialog

func (Window) NewFileOpenEntry

func (w Window) NewFileOpenEntry(entry *widget.Entry) *fyne.Container

func (Window) NewFormDialog

func (w Window) NewFormDialog(title string, items ...*widget.FormItem) dialog.Dialog

func (Window) NewFormDialogWithConfirm

func (w Window) NewFormDialogWithConfirm(title, confirm, dismiss string, onConfirm func(), items ...*widget.FormItem) dialog.Dialog

func (Window) ShowError

func (w Window) ShowError(err error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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