applyHeaderStyle applies style to the specified table header the last header panel does not the right border.
(h *Panel, last bool)
| 1547 | // applyHeaderStyle applies style to the specified table header |
| 1548 | // the last header panel does not the right border. |
| 1549 | func (t *Table) applyHeaderStyle(h *Panel, last bool) { |
| 1550 | |
| 1551 | styleCopy := t.styles.Header.PanelStyle |
| 1552 | if last { |
| 1553 | styleCopy.Border.Right = 0 |
| 1554 | } |
| 1555 | h.ApplyStyle(&styleCopy) |
| 1556 | } |
| 1557 | |
| 1558 | // applyRowStyle applies the specified style to all cells for the specified table row |
| 1559 | func (t *Table) applyRowStyle(trow *tableRow, trs *TableRowStyle) { |