This tutorial explains,
1. How to add checkbox to aem component dialog.
2. How tabs are render in aem dialog.
3. How to write change event handler for checkbox in aem dialog.
4. how to hide and show tabs and container on checkbox change.
5. how to hide and show dialog fields on change change.