diff options
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 } |
