andlabs / andlabs/ui

Any way to get form children?

Đang mở
#348 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
8.4k
Fork
639
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

```go
func (f *Form) Count() int {
count := len(f.children)
return count
}
```

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.

```go
func clearForm(entryForm *ui.Form) {
for entryForm.Count() > 0 {
for x := 0; x <= entryForm.Count(); x++ {
entryForm.Delete(0)
}
}
}
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.