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

Method SetSelectedFunc

internal/ui/components/form_button.go:161–165  ·  view source on GitHub ↗

SetSelectedFunc sets the callback for when the button is pressed.

(handler func())

Source from the content-addressed store, hash-verified

159
160// SetSelectedFunc sets the callback for when the button is pressed.
161func (b *FormButton) SetSelectedFunc(handler func()) *FormButton {
162 b.selected = handler
163 b.button.SetSelectedFunc(handler)
164 return b
165}
166
167// SetDisabled sets whether the button is disabled.
168func (b *FormButton) SetDisabled(disabled bool) tview.FormItem {

Callers 14

NewFormButtonFunction · 0.80
displayVMCreateFormMethod · 0.80
ShowMethod · 0.80
createHeaderMethod · 0.80
displayLXCCreateFormMethod · 0.80
SetVMSelectedFuncMethod · 0.80
createHeaderMethod · 0.80
SetNodeSelectedFuncMethod · 0.80
createLayoutMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected