Add a checkbox field on editor
Add a checkbox field on editor
hminhduc
Posts: 22Questions: 13Answers: 1
How can add a type checkbox field, and handle event when click on that
Thanhyou!
This question has an accepted answers - jump to answer
Answers
https://editor.datatables.net/reference/field/checkbox
To handle the event from such a field, you could either use
dependent()
(which I would recommend) orfield().input()
to get theinput
elements and then attach your custom event handler.What do you want your event handler to do?
Allan
Thank for reply, i have a checkbox on form editor. So when checked that, some other field must disable for cannot input.
dependenat()
sounds perfect for that:Allan