From 6e9ac22c124ea74c7e6903f438c7e7a03b8f9749 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 5 Mar 2025 12:40:06 -0600 Subject: need to move locally now --- table.custom.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 } -- cgit v1.2.3