MCPcopy Create free account
hub / github.com/Macmod/godap / AddDropDown

Method AddDropDown

tui/theme.go:186–197  ·  view source on GitHub ↗
(label string, options []string, initialOption int, selected func(option string, optionIndex int))

Source from the content-addressed store, hash-verified

184}
185
186func (f *XForm) AddDropDown(label string, options []string, initialOption int, selected func(option string, optionIndex int)) *XForm {
187 dropdown := tview.NewDropDown()
188 dropdown.
189 SetFieldBackgroundColor(DefaultTheme.FieldBackgroundColor).
190 SetLabel(label).
191 SetOptions(options, selected).
192 SetCurrentOption(initialOption)
193
194 f.AddFormItem(dropdown)
195
196 return f
197}
198
199func (f *XForm) AddCheckbox(label string, checked bool, changed func(checked bool)) *XForm {
200 f.AddFormItem(

Callers 10

getPropertyPermsFormFunction · 0.95
loadAceEditorFormFunction · 0.95
getObjectPermsFormFunction · 0.80
getControlPermsFormFunction · 0.80
handleAttrsKeyCtrlEFunction · 0.80
openSearchBaseDNFormFunction · 0.80
openCreateZoneFormFunction · 0.80
openCreateObjectFormFunction · 0.80
openConfigFormFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected