mirror of
https://github.com/rivo/tview.git
synced 2024-11-15 06:12:46 +00:00
Fix typo
This commit is contained in:
parent
822bd067b1
commit
5c01f5dd26
2
modal.go
2
modal.go
@ -82,7 +82,7 @@ func (m *Modal) SetButtonTextColor(color tcell.Color) *Modal {
|
|||||||
// SetDoneFunc sets a handler which is called when one of the buttons was
|
// SetDoneFunc sets a handler which is called when one of the buttons was
|
||||||
// pressed. It receives the index of the button as well as its label text. The
|
// pressed. It receives the index of the button as well as its label text. The
|
||||||
// handler is also called when the user presses the Escape key. The index will
|
// handler is also called when the user presses the Escape key. The index will
|
||||||
// then be negative and the label text an emptry string.
|
// then be negative and the label text an empty string.
|
||||||
func (m *Modal) SetDoneFunc(handler func(buttonIndex int, buttonLabel string)) *Modal {
|
func (m *Modal) SetDoneFunc(handler func(buttonIndex int, buttonLabel string)) *Modal {
|
||||||
m.done = handler
|
m.done = handler
|
||||||
return m
|
return m
|
||||||
|
Loading…
Reference in New Issue
Block a user