I’ve tried Ext.DomHelper.createDom but it creates an object without applying the document styles to it. The Ext.util.CSS.getRules can get all the rules, but I’d have to manually figure out which styles will be overridden and which’ll be applied.
Is there an easy way to get the styles given a class list?
Ext JS doesn’t provide a way to get all the styles for an element, but you can do it with a bit of plain old javascript after the element has been appended to the
dom:Of course if you just need to get a specific style, I’d recommnend using the
getStyle()method ofExt.Elementbecause it handles the browser differences for you.