ppforge/internal/ui/fieldadd.go

13 lines
224 B
Go
Raw Normal View History

package ui
2022-11-23 20:33:07 +01:00
import (
"fyne.io/fyne/v2/widget"
)
func GetAdder(pEd *ProtocolEditor) *widget.Button {
fieldAdder := widget.NewButton("Add Field", func() {
pEd.AddFieldCreator(CreateFieldEditor())
})
2022-11-23 20:33:07 +01:00
return fieldAdder
}