View Full Version : componentCls vs cls

6 Apr 2012, 3:57 AM
I wonder what's the difference between those two component configuration options.
From the doc it seems they serve the same purpose - to add class to root element of component.


6 Apr 2012, 7:44 AM
cls is usually what you should use for configuration as componentCls has default values used by some widgets. If there wasn't componentCls and cls had defualt values, users could easily override the default value that is needed to style something but you can still override it for any custom needs.