Show/hide entity on graphical pages
-
hi,
what would be the easiest way to show or hide an entity on the pages?
i.e. simple point showing mins remaning... but no relevant when the process is not running...
i've had a look and not been able to see anything other than making a white image block and covering the item in question based on simple point integer value.
thanks
Neil
-
if i cannot do this, i know i can do this, but i dont know the code :-/
server side script... holding register tag...
test tag > 0 then show text box but embed tag value next to text
else show nothing...
i been messing with some syntax but not working..
any pointers please...
thanks
-
i got this but i dont know how to display the value within the <span> bit :-/
please help
[code]
if (value>0)
return '<span style="background-color:#F8BB00;font-size:10px;font-weight:regular;border:1px solid #F07800;padding:1px 5px 1px 5px;">defrost time left: <span style="font-weight:bold"> 0 mins</span>'
else; -
Try this:
var s = ""; if (value > 0) { s += '<span style="background-color:#F8BB00;font-size:10px;'; s += 'font-weight:regular;border:1px solid #F07800;'; s += 'padding:1px 5px 1px 5px;">defrost time left: <span style="'; s += 'font-weight:bold"> '+ value +' mins</span>'; } return s;
-
thanks, that worked fine... like to say i understood it lol.....