Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-2510 in a recent build.
  1. #1
    Sencha User SunboX's Avatar
    Join Date
    Mar 2010
    Posts
    238
    Vote Rating
    28
    SunboX has a spectacular aura about SunboX has a spectacular aura about

      0  

    Default [2.0.0] Can't remove default back button text

    [2.0.0] Can't remove default back button text


    Demo:

    Code:
    Ext.Loader.setConfig({
        enabled: true
    });
    
    
    Ext.application({
        name: 'SenchaFiddle',
        
        launch: function() {
            var view = Ext.create('Ext.NavigationView', {
                fullscreen: true,
                
                defaultBackButtonText: null,
                navigationBar: {
                    backButton : {
                        align : 'left',
                        iconCls: 'back',
                        iconMask: true
                    }
                }
            });
         
            view.push({
                title: 'First',
                html: 'First view!'
            });
            view.push({
                title: 'Second',
                html: 'Second view!'
            });
        }
    });
    http://www.senchafiddle.com/#A3mkc

  2. #2
    Sencha User
    Join Date
    Feb 2012
    Posts
    253
    Vote Rating
    0
    ci11111 is on a distinguished road

      0  

    Default


    back button is central thing on NavigationView, like a the ".." on a directory file browsing
    If you don't want back button, why not using card layout

  3. #3
    Sencha User SunboX's Avatar
    Join Date
    Mar 2010
    Posts
    238
    Vote Rating
    28
    SunboX has a spectacular aura about SunboX has a spectacular aura about

      0  

    Default


    you miss understood, I want the back button. But no Button text. Only a back icon instead (more space). Navigationbar seemĀ“s very buggy. Title text is alway centered, title overlapse buttons ... and I want the back button to only show an icon. ;o)

  4. #4
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Thank you for the report.

    Sencha Inc

    Jamie Avins

    @jamieavins

  5. #5
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    NavigationView has been cleaned up a lot for the next release, and I just tested today and this already works. Thanks for the report.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  6. #6
    Sencha User
    Join Date
    Aug 2011
    Location
    Plymouth, UK
    Posts
    137
    Vote Rating
    -2
    simondavies has a little shameless behaviour in the past

      0  

    Default


    Until the next release you could alter the code within the View.js & Bar.js file.


    simple find the 'defaultBackButtonText' within the 'Ext.navigation.View' class, (within the navigation folder in the Veiw.js and Bar.js)
    (EDIT: Sorry: 'src/navigation/View.js' and 'src/navigatio/Bar.js')


    then remove the text in both. you might then need to add a few non breaking spaces within them so the button stretches but this will remove the text.

    This worked for me, then when the next release and updates are out it can be put back. hope this helps.
    Last edited by simondavies; 29 Mar 2012 at 5:06 AM. Reason: added a little more details