Email compose dialog
The layout of our compose dialog window is slightly more basic: a vertical box named layout manages the stack of controls into which the input elements are appended. We need to create another box, in horizontal arrangement, to place the To label before the input field; make sure to turn the padding on to provide some spacing. Each of the text input boxes is created using ui.NewEntry(), which creates a simple one-line input field. Unfortunately, at the time of writing, there was no multi-line input field—a constraint that does not have an obvious workaround at this stage. The next release of the UI library will have a new ui.MultilineEntry, which will provide this functionality.
The last of the compose layout is the second ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access