Using the '.prop' modifier to toggle the 'indeterminate' appearance of the checkbox:
Toggle
Checkbox