subbed in tables

This commit is contained in:
Jeff Carr 2025-02-13 20:11:32 -06:00
parent d4b7cd32d4
commit 59f97be98c
Notes: Jeff Carr 2025-02-14 00:21:07 -06:00
// `autogen:go.mod`

module go.wit.com/widget

go 1.22

toolchain go1.23.6

// `autogen:`
2 changed files with 5 additions and 0 deletions

View File

@ -42,6 +42,8 @@ type Action struct {
// Make widgets fill up the space available
Expand bool
TablePB []byte // a table protobuf
}
type ActionType int // Add, SetText, Click, Hide, Append, Delete, etc

View File

@ -33,6 +33,7 @@ const (
Textbox // is this a Label with edit=true
Slider // like a progress bar
Spinner // like setting the oven temperature
Table // a full window & table
Separator // TODO
Image // TODO
Area // TODO
@ -79,6 +80,8 @@ func (s WidgetType) String() string {
return "Spinner"
case Separator:
return "Separator"
case Table:
return "Table"
case Image:
return "Image"
case Area: