SetLastColumnStretched sets if the last column should take up all remaining horizontal space of the *TableView. The effect of setting this is persistent.
(value bool)
| 1494 | // |
| 1495 | // The effect of setting this is persistent. |
| 1496 | func (tv *TableView) SetLastColumnStretched(value bool) error { |
| 1497 | if value { |
| 1498 | if err := tv.StretchLastColumn(); err != nil { |
| 1499 | return err |
| 1500 | } |
| 1501 | } |
| 1502 | |
| 1503 | tv.lastColumnStretched = value |
| 1504 | |
| 1505 | return nil |
| 1506 | } |
| 1507 | |
| 1508 | // StretchLastColumn makes the last column take up all remaining horizontal |
| 1509 | // space of the *TableView. |
no test coverage detected