user7282
user7282

Reputation: 5196

Change back button text in sencha touch detail card of nested list

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',
}

Upvotes: 1

Views: 1912

Answers (3)

Lukas K.
Lukas K.

Reputation: 861

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

useTitleAsBackText: false,
backText: 'Go Back!'

Upvotes: 4

Josh
Josh

Reputation: 8191

Use the backText config for Ext.dataview.NestedList:

backText: 'Go Back!'

Check it out here.

Upvotes: 1

rdougan
rdougan

Reputation: 7225

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

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

    ...
});

Upvotes: 1

Related Questions