PDA

View Full Version : componentCls vs cls



MichaelOstrovsky
6 Apr 2012, 3:57 AM
Hello.
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.

Thanks

mitchellsimoens
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.