1

How can I change back button text in sencha touch detail card of nested list.

What I have done in detailcard config is :

detailCard: {
    xtype: 'panel',
    styleHtmlContent: true,
    scrollable: true,
    html: '  Loading ...... ',
    id: 'detailcard',
}
Narendra Jadhav
  • 10,052
  • 15
  • 33
  • 44
user7282
  • 5,106
  • 9
  • 41
  • 72

3 Answers3

4

In addition to the backText you need to set the useTitleAsBackText attribute to false:

useTitleAsBackText: false,
backText: 'Go Back!'
Lukas K.
  • 863
  • 5
  • 15
1

You can use the backButton configuration of NestedList to customize the text.

Ext.Viewport.add({
    xtype: 'nestedlist',
    backButton: {
        text: 'Terug'
    },

    ...
});
rdougan
  • 7,217
  • 2
  • 34
  • 63
1

Use the backText config for Ext.dataview.NestedList:

backText: 'Go Back!'

Check it out here.

Josh
  • 8,082
  • 5
  • 43
  • 41