diff options
| author | Jeff Carr <[email protected]> | 2025-03-05 12:40:06 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-05 12:42:50 -0600 |
| commit | 6e9ac22c124ea74c7e6903f438c7e7a03b8f9749 (patch) | |
| tree | 4e85f7453861188c9ecec3c35fa0ce6d3f94a002 /table.custom.go | |
| parent | 13ffeae21353602d9b234a3b6d9bb86085a3f93b (diff) | |
need to move locally now
Diffstat (limited to 'table.custom.go')
| -rw-r--r-- | table.custom.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/table.custom.go b/table.custom.go index 8c079fd..48eba29 100644 --- a/table.custom.go +++ b/table.custom.go @@ -14,8 +14,20 @@ import "go.wit.com/log" func (pb *Tables) Custom(id int) { log.Info("got to guipb.Custom() for pb", pb.GetUuid(), "widget id", id) + if mycustom != nil { + mycustom(id) + } } func (pb *Table) Custom(id int) { log.Info("got to guipb.Custom() for pb", pb.GetUuid(), "widget id", id) + if mycustom != nil { + mycustom(id) + } +} + +var mycustom func(int) + +func (pb *Table) RegisterCustom(f func(int)) { + mycustom = f } |
