-
My current approach is: wiget := g.TableRow(
g.Checkbox(user.Name, &model.Users[i].IsSelect).OnChange(func() {
ChangeUsers(i)
}),
g.Labelf("%v", user.ID),
g.Event().OnClick(g.MouseButtonLeft, func() {
fmt.Println("clicked")
}),
)
list = append(list, wiget) but he can only click on the text, and the table row will have an extra column |
Beta Was this translation helpful? Give feedback.
Answered by
Arbureva
Oct 3, 2022
Replies: 1 comment
-
I've come up with an alternative at the moment, so if there's a better way, I hope someone will let me know, thanks~ wiget := g.TableRow(
g.Layout{
g.Checkbox(user.Name, &model.Users[i].IsSelect).OnChange(func() {
ChangeUsers(i)
}),
},
g.Layout{
g.Selectablef("%v", user.ID),
g.Event().OnClick(g.MouseButtonLeft, func() {
fmt.Println("clicked")
}),
},
)
list = append(list, wiget) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Arbureva
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've come up with an alternative at the moment, so if there's a better way, I hope someone will let me know, thanks~