# How to activate dynamically created UI switches

**URL:** <https://discourse.nodered.org/t/how-to-activate-dynamically-created-ui-switches/5348>\
**Category:** Dashboard\
**Created:** [30 November 2018 13:32 UTC](https://discourse.nodered.org/t/how-to-activate-dynamically-created-ui-switches/5348 "2018-11-30T13:32:16Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Post date:** [30 November 2019 22:08 UTC](https://discourse.nodered.org/t/how-to-activate-dynamically-created-ui-switches/5348/22 "2019-11-30T22:08:14Z")

</div>

> [@iiLaw](#):
>
> Hi what version of dashboard are you running?  
> I've just tested with a data set I use to create a set of dynamic widgets using ng-repeat.

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.

---

<div class="post-metadata">

**Author:** ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Post date:** [1 December 2019 11:22 UTC](https://discourse.nodered.org/t/how-to-activate-dynamically-created-ui-switches/5348/23 "2019-12-01T11:22:30Z")

</div>

> [@iiLaw](#):
>
> Hi what version of dashboard are you running?  
> I've just tested with a data set I use to create a set of dynamic widgets using ng-repeat.  
> Works fine no diapering table!

Can you test[my code](https://pastebin.com/cibBa5NG)?

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.

---

<div class="post-metadata">

**Author:** ![iiLaw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iilaw/32/14782_2.png) [@iiLaw](https://discourse.nodered.org/u/iiLaw)\
**Post date:** [2 December 2019 09:42 UTC](https://discourse.nodered.org/t/how-to-activate-dynamically-created-ui-switches/5348/24 "2019-12-02T09:42:38Z")

</div>

Yes happy to test code

[Previous page](https://discourse.nodered.org/t/how-to-activate-dynamically-created-ui-switches/5348.md?page=1)
