summaryrefslogtreecommitdiff
path: root/tableCallbacks.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-13 00:30:38 -0700
committerJeff Carr <[email protected]>2019-05-13 00:30:38 -0700
commit5ec1416d20f874fe0ef01b9f33ba86dbe5960435 (patch)
treed13316484d9a525b6b75f96180e3b1ae4c4c91d1 /tableCallbacks.go
parentf3eeb4e9ec6160552f3213eea2d6f2442bc90e89 (diff)
combined table column init
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'tableCallbacks.go')
-rw-r--r--tableCallbacks.go13
1 files changed, 8 insertions, 5 deletions
diff --git a/tableCallbacks.go b/tableCallbacks.go
index b36fc4c..b1655da 100644
--- a/tableCallbacks.go
+++ b/tableCallbacks.go
@@ -30,7 +30,14 @@ func (mh *TableData) CellValue(m *ui.TableModel, row, column int) ui.TableValue
if (column == mh.Human[humanID].ColorID) {
return mh.Rows[row].HumanData[humanID].Color
}
- panic("not sure what sort of ui.TableValue to return in CellValue()")
+ log.Println("CellValue() FAILURE")
+ log.Println("CellValue() FAILURE")
+ log.Println("CellValue() row, column = ", row, column)
+ log.Println("CellValue() FAILURE")
+ log.Println("CellValue() FAILURE")
+ log.Println("CellValue() mh.Cells", mh.Cells)
+ log.Println("CellValue() mh.Human", mh.Human)
+ panic("CellValue() not sure what sort of ui.TableValue to return in CellValue()")
return ui.TableString("")
}
@@ -39,10 +46,6 @@ func (mh *TableData) SetCellValue(m *ui.TableModel, row, column int, value ui.Ta
defaultSetCellValue(mh, row, column)
- if (mh.cellChangeEvent != nil) {
- mh.cellChangeEvent(row, column, value)
- }
-
log.Println("mh.Cells[column].HumanID =", mh.Cells[column].HumanID)
// log.Println("mh.Rows[row].Cells[column].HumanID =", mh.Rows[row].Cells[column].HumanID)