Use checkbox to toggle collapse

I’m trying t use a checkbox to show/hide data (specifically a table in this case)

Is there a good tutorial somewhere on the uses of checkboxes and specifically how do I make this work on my page?

Add Checkbox control to page

Click on the table in the app structure

Go to Dynamic attributes (in properties)
select show element (click lightening bolt on show element)
select checked from checkbox input
upload and test your page

if you need any more info let me know

Thanks, I got tied up with some other tasks and haven’t tried it yet but I appreciate the advice. I’m hoping to use the checkbox for some other filtering functions hopefully this will get me headed in the right direction.