diff options
| author | Jeff Carr <[email protected]> | 2025-03-25 08:57:01 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-25 13:17:00 -0500 |
| commit | 308543c02c1e39ac6b9dd45ae31ab9aa596853e8 (patch) | |
| tree | 16ea1bbfea26b1efa103e0e26bede1a958052d74 /table.go | |
| parent | d141b4d308f71418e8d43a58c2e04f9560db3092 (diff) | |
identify widgets in tables
Diffstat (limited to 'table.go')
| -rw-r--r-- | table.go | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -307,6 +307,19 @@ func (me *TreeInfo) addTableRow(t *guipb.Table, grid *Node, name string, w int) return false } +// returns true if widget is in a table +func (n *Node) InTable() bool { + // log.Info("InTable() parent id =", n.ParentId) + grid := FindWidgetById(int(n.ParentId)) + if grid != nil { + if grid.WidgetType == widget.Grid { + return true + } + } + + return false +} + func dumpTable(t *guipb.Table) { for i, o := range t.Order { log.Info("got order:", t.Title, i, o) |
