summaryrefslogtreecommitdiff
path: root/redo/table.go
diff options
context:
space:
mode:
Diffstat (limited to 'redo/table.go')
-rw-r--r--redo/table.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/redo/table.go b/redo/table.go
index 2b69d6a..83baadd 100644
--- a/redo/table.go
+++ b/redo/table.go
@@ -47,6 +47,9 @@ type Table interface {
// TODO bounds checking
Selected() int
Select(index int)
+
+ // OnSelected is an event that gets triggered after the selection in the Table changes in whatever way (item selected or item deselected).
+ OnSelected(func())
}
type tablebase struct {