diff options
Diffstat (limited to 'table.go')
| -rw-r--r-- | table.go | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/table.go b/table.go new file mode 100644 index 0000000..292bdd1 --- /dev/null +++ b/table.go @@ -0,0 +1,35 @@ +// a table is a grid with X columns and 1 row of header names +// that means that the toolkits might be able to sort the table +// pushing traditional application development to the display +// is that a good idea? + +package gui + +// should this be a gadget or in here with the widget primatives? +// a table is a group of widgets. Then again, Grid & Box 'widgets' are +// really groups of widgets also + +/* +mytable := NewTable(5) // make a table with 5 things + +type mytable struct { + first TableRow(1, Widget.TextBox, "First Name") + song TableRow(2, Widget.Label, "Favorite Song") + +func (t *Table) NewRow() *TableRow { + r := new(myRow) + r.first = + r.Cell1 = whatever widget type first is + r.Cell2 = whatever widget type song is + + +type songTable TableDef { + first TableCell `default:string` + song TableCell + GuiPlugin string `arg:"Label" header:"Favorite Song"` +} + +func makeSongTable() { + tb := NewTable(5) +*/ + |
