# Simple class property for all ui elements?

**URL:** <https://discourse.nodered.org/t/simple-class-property-for-all-ui-elements/19650>\
**Category:** Dashboard\
**Created:** [27 December 2019 15:32 UTC](https://discourse.nodered.org/t/simple-class-property-for-all-ui-elements/19650 "2019-12-27T15:32:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanrdetzel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ryanrdetzel/32/5286_2.png) [@ryanrdetzel](https://discourse.nodered.org/u/ryanrdetzel)\
**Post date:** [27 December 2019 15:32 UTC](https://discourse.nodered.org/t/simple-class-property-for-all-ui-elements/19650/1 "2019-12-27T15:32:43Z")

</div>

Could we get a class property for all elements that would easily allow us to target a particular element with a class name? So, for one button I could set the class to 'importantButton' and then just target that class in a template node or something?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [27 December 2019 21:11 UTC](https://discourse.nodered.org/t/simple-class-property-for-all-ui-elements/19650/2 "2019-12-27T21:11:31Z")

</div>

I can't think of an easy way to do this apart from adding a specific class option to every widget in existence. This would then break when we eventually get to allowing users to have repeated widgets (like subflows but for ui) - as they would then be copies and not individual nodes again.
