PDA

View Full Version : style config



WendyLG
30 May 2012, 2:23 AM
Where in the APi does it tell you the list of supported style attributes?
in the examples I can only find 1 or 2 used everywhere.

I am asking because the list isn't the same as css for example background-color is just background and border-image crashes my page.

And i suppose my supplymentary question is, how do I do a border-image as I can't get that working.

Tim Toady
30 May 2012, 7:11 AM
I haven't encountered anything that doesn't work. Typically I try not to do any css in my js though. Instead of dashes you need to use camel case eg backgroundColor. Here is the function that translates it.

http://docs.sencha.com/ext-js/4-1/#!/api/Ext.dom.AbstractElement-static-method-normalize

WendyLG
30 May 2012, 7:11 AM
thanks.