you just need to have an array or an object as variable to save the status of the checkboxes and bind/change the corresponding value in the variable.
It’s similar to other examples about inputs and forms that you can find here in the forum.
See this example.