# Dashboard toggle button without switch

**URL:** https://discourse.nodered.org/t/dashboard-toggle-button-without-switch/45777
**Category:** Dashboard
**Created:** [17 May 2021 11:23 UTC](https://discourse.nodered.org/t/dashboard-toggle-button-without-switch/45777 "2021-05-17T11:23:34Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [17 May 2021 11:32 UTC](https://discourse.nodered.org/t/dashboard-toggle-button-without-switch/45777/2 "2021-05-17T11:32:33Z")

</div>

Hi.

You might be better doing this in a template node rather than maintain state in context at server side.

This rather larger demo I did for another user might provide some cues. In particular the mute button that toggles icon. You could use the same design patter to create a 3 state button.

See [this thread](https://discourse.nodered.org/t/adding-output-function-to-buttons-designed-in-template-node/25591/54).

---

_[View the full topic](https://discourse.nodered.org/t/dashboard-toggle-button-without-switch/45777)._
