ShowColumn sets the visibility of the column with the specified id If the column id does not exit the function panics.
(col string, show bool)
| 320 | // ShowColumn sets the visibility of the column with the specified id |
| 321 | // If the column id does not exit the function panics. |
| 322 | func (t *Table) ShowColumn(col string, show bool) { |
| 323 | |
| 324 | c := t.header.cmap[col] |
| 325 | if c == nil { |
| 326 | panic(tableErrInvCol) |
| 327 | } |
| 328 | if c.Visible() == show { |
| 329 | return |
| 330 | } |
| 331 | c.SetVisible(show) |
| 332 | t.recalc() |
| 333 | } |
| 334 | |
| 335 | // ShowAllColumns shows all the table columns |
| 336 | func (t *Table) ShowAllColumns() { |
nothing calls this directly
no test coverage detected