How to activate dynamically created UI switches

I am running NR 1.0.2 and dashboard 2.17.1. I would be great if I could get this running, because I would much prefer this option to ui-table that I am using at the moment.

Can you testmy code?

It is a larger big table, if you scroll all the way to the end and click on of the "Click me" buttons for me the entire table disappears.

Yes happy to test code