AppendButtonColumn appends a column to t that shows a button that the user can click on. When the user does click on the button, SetCellValue is called with a nil value and buttonModelColumn as the column. CellValue on buttonModelColumn should return the text to show in the button.
(name string, buttonModelColumn int, buttonClickableModelColumn int)
| 151 | // CellValue on buttonModelColumn should return the text to show |
| 152 | // in the button. |
| 153 | func (t *Table) AppendButtonColumn(name string, buttonModelColumn int, buttonClickableModelColumn int) { |
| 154 | cname := C.CString(name) |
| 155 | defer freestr(cname) |
| 156 | C.uiTableAppendButtonColumn(t.t, cname, C.int(buttonModelColumn), C.int(buttonClickableModelColumn)) |
| 157 | } |