# DB2 multi state switch revisited

**URL:** <https://discourse.nodered.org/t/db2-multi-state-switch-revisited/91084>\
**Category:** General\
**Tags:** dashboard-2\
**Created:** [18 September 2024 20:52 UTC](https://discourse.nodered.org/t/db2-multi-state-switch-revisited/91084 "2024-09-18T20:52:47Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [19 September 2024 05:32 UTC](https://discourse.nodered.org/t/db2-multi-state-switch-revisited/91084/3 "2024-09-19T05:32:04Z")

</div>

> [@gerry](#):
>
> @BartButenaers and @hotNipi posted some multi state switch code

Hi @gerry,  
I will post the [link](https://discourse.nodered.org/t/dashboard-2-multi-state-switch/85168/16) here for completeness. After we had that discussion at the time being it was decided that the multistate switch should become a core node: the [ui-button-group](https://dashboard.flowfuse.com/nodes/widgets/ui-button-group.html) node was born.

Last weekend I migrated my own dashboard finally to D2. And now I use that button group node as a replacement for all my old ui-multistate-switch nodes.

Instead of changing hotnipi's sample code, I would appreciate if you could try to do your changes on the ui-button-group node instead. You can find the frontend code [here](https://github.com/FlowFuse/node-red-dashboard/blob/main/ui/src/widgets/ui-button-group/UIButtonGroup.vue). That is the only way to improve our core ui nodes. And I assume Joe doesn't mind to get some help from the community...

About your multiline question: since CSS isn't my best friend, I am afraid I need to pass that question on to others reading this.

Good luck!  
Bart

---

_[View the full topic](https://discourse.nodered.org/t/db2-multi-state-switch-revisited/91084)._
