<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How do change text colour based on data update?]]></title><description><![CDATA[<p dir="auto">I want to change an indicate or text colour based on the data being out of date. The data on the system arrives every 15 seconds so I'd like the flag it when there is no data for, say 60 seconds?</p>
<p dir="auto">Or how to create an LED indicator type display for the same thing?</p>
<p dir="auto">How to do this?</p>
]]></description><link>https://forum.mango-os.com/topic/4501/how-do-change-text-colour-based-on-data-update</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 16:26:51 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/4501.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 02 Oct 2019 07:40:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How do change text colour based on data update? on Wed, 02 Oct 2019 13:39:12 GMT]]></title><description><![CDATA[<p dir="auto">Hi v8dave,</p>
<p dir="auto">That sounds to me like a time to use the <code>ng-class</code> attribute, where you can use logic to apply one or another CSS class.</p>
<p dir="auto">For example, this thread has an LED of many colors throbbing: <a href="https://forum.infiniteautomation.com/topic/4469/how-to-make-style-blinking-via-value/4" rel="nofollow ugc">https://forum.infiniteautomation.com/topic/4469/how-to-make-style-blinking-via-value/4</a></p>
<p dir="auto">There are also many other examples of using ng-class on the forum.</p>
]]></description><link>https://forum.mango-os.com/post/23765</link><guid isPermaLink="true">https://forum.mango-os.com/post/23765</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 02 Oct 2019 13:39:12 GMT</pubDate></item></channel></rss>