jeudi 12 février 2015

How to Right ALign and Left Align settitle in EXT JS 4.2

Hello,

I am new to sencha and am stuck in trying to left align some text and right align some text in the same setTitle in my controller. Below is my code and any help would be greatly appreciated!


onViewItemClick:
function (dataview, record, item, index, e, eOpts) {

var me= this ,

filePath=record.get('FilePath'),
acctsList=me.getAccountsList(),

store=acctsList.getStore();

store.getProxy().extraParams.filePath=filePath;
//acctsList.setTitle('Reports by Account - ' + record.get('DirectoryName') + ' - ' + record.get('DisplayName') + ' (Right Align - Last Updated on: ' + record.get('InsertDate') + ' at ' + record.get('InsertTime') + ')');

acctsList.setTitle('Hello - left align ' + 'World - right align' )
me.getAllReportsBtn().setDisabled(false);
MyApp.currentReportLoaded=record;

store.load();

},






How to Right ALign and Left Align settitle in EXT JS 4.2

Aucun commentaire:

Enregistrer un commentaire