How to create checkbox that can be used to sign other checkboxex. #4388
Unanswered
FRutkowski
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a problem because i want to create more complex checkbox feature and i don't know how to do that the right way.
At first,
I have some columns that each column has header(checkbox) that when it is checked then all the elements in the column should be also checked. And also each element in the column has a checkbox that is assigned only to this element. I have read a bit about creating custom inputs but for this case it seems to be harder to implement.
It is my code where i use the custom checkboxex:
My CheckboxAvatarField code:
My CheckboxHeaderField code:
At a submit i would like to have all checked objects(or just its ids) that i could sent it to the backend. When role is checked, every teamMember that belongs to this role, should be also checked but every teamMember should has a checkbox if i wouldn't like to check all elements in the role's section.
If you have any ideas how to implement this i would be very grateful for help.
Beta Was this translation helpful? Give feedback.
All reactions