Checkerboard Type wurde eingeführt

This commit is contained in:
Klaus Wendel, archium GmbH 2023-01-20 14:59:18 +01:00
parent 4cf8fec990
commit 1f2d07461f
1 changed files with 4 additions and 7 deletions

View File

@ -145,19 +145,16 @@ func GetCheckedRadioOrCheckbox(jsObject js.Value) (id, name, value string) {
return
}
func GetStatusFromBulkOfIds(dombase js.Value, ids []string) (result []struct {
type Checkerboard struct {
id, name string
checked, disabled bool
value string
}) {
}
func GetStatusFromBulkOfIds(dombase js.Value, ids []string) (result []Checkerboard) {
for _, id := range ids {
tmpObject := dombase.Call(DOCUMENTS_METHOD_getElementById, id)
result = append(result, struct {
id, name string
checked, disabled bool
value string
}{
result = append(result, Checkerboard{
id: id,
name: tmpObject.Get("name").String(),
checked: tmpObject.Get("checked").Bool(),