MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / SetDoneFunc

Method SetDoneFunc

internal/ui/components/wide_modal.go:100–103  ·  view source on GitHub ↗

SetDoneFunc sets a handler which is called when one of the buttons was pressed.

(handler func(buttonIndex int, buttonLabel string))

Source from the content-addressed store, hash-verified

98
99// SetDoneFunc sets a handler which is called when one of the buttons was pressed.
100func (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.
106func (m *WideModal) SetText(text string) *WideModal {

Callers 12

CreateAboutDialogFunction · 0.95
showMessageMethod · 0.80
showAddGroupDialogMethod · 0.80
CreateConfirmDialogFunction · 0.80
createBaseModalFunction · 0.80
NewBackupTableFunction · 0.80
NewSnapshotTableFunction · 0.80
showBootstrapRunFormMethod · 0.80
buildLayoutMethod · 0.80
ShowErrorModalMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected