# Bind text in the Dashboard header

**URL:** <https://discourse.nodered.org/t/bind-text-in-the-dashboard-header/23656>\
**Category:** Dashboard\
**Created:** [26 March 2020 07:09 UTC](https://discourse.nodered.org/t/bind-text-in-the-dashboard-header/23656 "2020-03-26T07:09:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![robertsLando](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/robertslando/32/6937_2.png) [@robertsLando](https://discourse.nodered.org/u/robertsLando)\
**Post date:** [26 March 2020 15:11 UTC](https://discourse.nodered.org/t/bind-text-in-the-dashboard-header/23656/5 "2020-03-26T15:11:16Z")

</div>

If you would like to see it in all dashboards tabs you could use my flow as a base, then place an hidden template node in all tabs (in template node options place it in the body and not in the head section because if in the head it cannot receive msg inputs) in that template just set up the template node to watch for the input:

```auto
<script>
    (function(scope) {
        scope.$watch('msg.payload', function(data) {
            // get the element from the dashoard header and change its status using normal js/html
            var elem = document.getElementById("headerStatus")
            elem.className = data.payload ? 'online' : 'offline';
        });
    })(scope);
</script>

```

---

_[View the full topic](https://discourse.nodered.org/t/bind-text-in-the-dashboard-header/23656)._
