I'm trying to accomplish something that I kind of feel silly for not being able to figure out. I'm trying to add a CSS class to the cells of a dataGrid.
I've tried setting up a renderer that is simply
but it told me that it was missing a ";".
return "<span class='myClass'>" + val + "</span>";
Then I read somewhere that you should be able to say metadata.css = 'myClass', so I tried that. Now it says "metadata is not defined". It seems like this is way harder than it needs to be, I've never spent this much time trying to figure out how to change a font and center align something.
Anybody know what the easiest way to accomplish this is? Also, is there a way to apply a separate CSS class to the header row?