[Dojo-interest] formatter o decoration in GridX

gee yurychika at gmail.com
Thu Jan 23 21:12:28 EST 2014


try this

var columns =  [
	{field: "id", name: "id", width: "100px", style: "text-align: center"},
	{field: "authdate", name: "date", width: "150px", style: "text-align:
center"},
	{field: "server_type", name: "type", width: "100px"},
	{field: "username", name: "username", width: "200px"},
	{field: "reply", name: "reply", width: "120px", style: function(cell){
		if(cell.data() !== 'ok'){
			return 'text-align: right; background: red';
		}
		return 'text-align: right';
	}},
	{field: "status", name: "status", width: "140px", style: 'text-align:
right;'}
];



--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/formatter-o-decoration-in-GridX-tp4000793p4000829.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.


More information about the Dojo-interest mailing list