SetText sets the text of the tab header
(text string)
| 462 | |
| 463 | // SetText sets the text of the tab header |
| 464 | func (tab *Tab) SetText(text string) *Tab { |
| 465 | |
| 466 | tab.label.SetText(text) |
| 467 | // Needs to recalculate all Tabs because this Tab width will change |
| 468 | tab.tb.recalc() |
| 469 | return tab |
| 470 | } |
| 471 | |
| 472 | // SetIcon sets the optional icon of the Tab header |
| 473 | func (tab *Tab) SetIcon(icon string) *Tab { |