SetLabel sets the button label.
(label string)
| 110 | |
| 111 | // SetLabel sets the button label. |
| 112 | func (b *FormButton) SetLabel(label string) tview.FormItem { |
| 113 | b.label = label |
| 114 | b.button.SetLabel(label) |
| 115 | return b |
| 116 | } |
| 117 | |
| 118 | // GetFieldWidth returns the width of the button (label length). |
| 119 | func (b *FormButton) GetFieldWidth() int { |
no outgoing calls
no test coverage detected