PDA

View Full Version : how to create an ExtJS string?



j11extjs
15 Nov 2010, 5:49 AM
probably a very noob question but how do I create an ExtJS string initialized to a value?
along the lines of:

var myString = new Ext.String({
value = 'Hello ';
});
this is because I want to use ExtJS string's trim() function and not have to write my own as:


myString.trim(); // results in 'Hello'thank you in advance.

Ex_Soft
15 Nov 2010, 6:06 AM
var
SmthStr=" Hello ";

SmthStr=SmthStr.trim();