Is there a better way to be doing this? I need this functionality to refresh the form on button click such as, so I can allow the UI to be more dynamic.
func clearForm(entryForm *ui.Form) {
for entryForm.Count() > 0 {
for x := 0; x <= entryForm.Count(); x++ {
entryForm.Delete(0)
}
}
}
So currently I am using a method to get the children of the form, but as its not part of the andlabs ui it gets removed on dep ensure.
Is there a better way to be doing this? I need this functionality to refresh the form on button click such as, so I can allow the UI to be more dynamic.