extjs - Change default back button on navigation view -


hi trying change title , icon of default button after pushing in panel. have tried below code in controller , have tried similar code in config of view no success. direction on implementing helpful

       this.getplacesnavview().push({ xtype: 'details',title: name,         backbutton:{ iconcls:'reply', iconmask: true,  usetitleforbackbuttontext: false,         defaultbackbuttontext: 'back places'}}); 

good question.

backbutton component of navigationbar config. can define inside navigationbar config of navigation view --

navigationbar : {     backbutton : {         align : 'left',         hidden : true,         ui : 'back',         iconmask: true,         iconcls:'reply'      } } 

from controller need instance of navigationbar , backbutton. , set required properties. first push desired view , change button-

this.getplacesnavview().push({         xtype: 'details',         title: name     }); var backbutton = this.getplacesnavview().getnavigationbar().getbackbutton();         backbutton.settext("back places");         backbutton.seticonmask(true);         backbutton.seticoncls("reply"); 

here demonstration


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -