[Solved] Request for templating capability in the Dashboard Block header

Hi

It would be really good to be able to include some templating in the Block Header Text.

For instance we constantly change the period Time Series graphs and have to remember to chnage the header block to reflect the period.

Being able to include a template {{duration}} {{period}} would be really helpful in ensuring people understand what they are looking at.

Other templates such as the device in a gauge woud be good. I am alwyas putting the device name in the header block of gauges.

Here is an example of what we are always entering in the header

Thanks

Tim

1 Like

That’s a really good feature request. I just realized I’m also always updating the header every time I change the duration.

@Tim_Hoffman we just released a feature allowing users to change duration and resolution on the fly. As a byproduct of that, the currently displayed duration and resolution now displays in the time series block header (except for streaming blocks). I believe this resolves your issue!

I should also point out that it is now possible to add {{ config.duration }} or {{ config.resolution }} in the time series block headers (along with formatting helpers) to depict the default values for the block. Note, however, that if you change the duration and resolution in the on-the-fly dropdown, the values in your header text will still reflect the block’s default settings.

Is this still not a feature? I know this is a 2 year old topic, but I find myself changing the dashboard block header text to match the ‘variable’ sensInfo name of the sensor. I have, both, tags and data tables for various ‘name’ manipulations in the workflow and other areas, but I came up with the same question 2 years later… it would be awesome if block headers could be ‘templatable’ with, either, tags or payload/table data values…for example:


image

Couldn’t confirm from this post if this got to be a ‘feature’ or not. If not, here’s a good suggestion; food for thought :slight_smile: :red_circle:

Hey @Jose_Cruz,

This has become a feature see Dylans comment from above:

You also have access to Context Variables within the block headers.

Example:

If you aren’t using Context Variables yet, I’d highly recommend it. There is a Losant Univerity course on this topic.

1 Like