Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewForm ¶
NewForm is an address book: a sortable, filterable contact list with a details panel, and a dialog to add and edit contacts. It shows a toolbar of flat ToolButtons with tooltips, a search TextBox with a hint, a ComboBox filter, a Table with row multiselection, header sorting and a context menu, a Splitter, Links, an Accordion of Expanders, a DialogContent with a DatePicker and inline validation, question message boxes, the clipboard, the save file dialog (CSV export), toasts and keyboard shortcuts.
Types ¶
type Contact ¶
type Contact struct {
Name string
Company string
Group string
Phone string
Email string
Birthday time.Time
Favorite bool
Notes string
}
Contact is one entry of the address book.
type DialogContact ¶
type DialogContact struct {
ui.DialogContent
// OnOK gets the edited contact
OnOK func(contact Contact)
// contains filtered or unexported fields
}
DialogContact adds a new contact or edits an existing one. OK checks the fields and keeps the dialog open with a message while they are wrong.
func NewDialogContact ¶
func NewDialogContact(title string, contact Contact) *DialogContact