SetDoneFunc sets a handler which is called when one of the buttons was pressed.
(handler func(buttonIndex int, buttonLabel string))
| 98 | |
| 99 | // SetDoneFunc sets a handler which is called when one of the buttons was pressed. |
| 100 | func (m *WideModal) SetDoneFunc(handler func(buttonIndex int, buttonLabel string)) *WideModal { |
| 101 | m.done = handler |
| 102 | return m |
| 103 | } |
| 104 | |
| 105 | // SetText sets the message text of the window. |
| 106 | func (m *WideModal) SetText(text string) *WideModal { |
no outgoing calls
no test coverage detected