PDA

View Full Version : Ext.String.capitalize()



chetan.nellekeri
8 May 2014, 10:19 PM
Hi..

What exactly Ext.String.capitalize() does..?
It should convert whole string to upper case or only first case...

My Observation..
1. Ext.String.capitalize('pdf') returns 'Pdf'
2. Ext.String.capitalize('PDF') returns 'PDF'

However I have used
Ext.util.Format.uppercase('PDF') to convert it to Uppercase...

evant
8 May 2014, 10:43 PM
The first character. I'll update the docs to make this unambiguous.