PDA

View Full Version : [CLOSED] Renderer function



tanky65
Jul 30, 2012, 5:14 PM
is there a way to render the content of a grid-column field blinking under defined conditions, eventually combined with one colour, using js function ?

for instance (all value <= 0 in red and blinking )


var highlight = function (value) {
return Ext.String.format(template, (value > 0) ? "green" : "red", value);
};




MyGridColumn.Renderer.Fn = "highlight "

thanks in advance

Daniil
Jul 30, 2012, 7:09 PM
Hi,

I would use CSS

text-decoration:blink;
http://www.w3schools.com/cssref/pr_text_text-decoration.asp

Vladimir
Jul 30, 2012, 7:17 PM
Please note that text-decoration blink is supported by Opera and FireFox only
For CSS3 browsers you can use styles from the following article
http://visualidiot.com/articles/css3

tanky65
Jul 30, 2012, 7:20 PM
yes, thanks Daniil, but I remembered it was not supported in browsers (ie and chrome both). I got the same confirmation on the page you left me.
I just was asking if some other stuff was available.

Vladimir, I check it, thanks

Daniil
Jul 30, 2012, 8:21 PM
Apologize, forgot/missed it is not supported in IE, Chrome and Safari.