1. #11
    Sencha User
    Join Date
    Jun 2011
    Location
    Switzerland
    Posts
    16
    Vote Rating
    0
    chrigu is on a distinguished road

      0  

    Default Quick and dirty way

    Quick and dirty way


    As already said.. this is not the way how you should do it but it worked for me:
    Code:
    setTitle: function(title)
        {
            this._navigationBar.setTitle(title);
        }
    For some reason the back-button is not shown anymore if you do a this.getNavigationBar().setTitle(title) but I had no time to further investigate.

  2. #12
    Sencha User
    Join Date
    Jul 2013
    Posts
    4
    Vote Rating
    0
    DragonSL is on a distinguished road

      0  

    Default


    1. Init navigation view component with some controller or query:

    Code:
    var nav = Ext.ComponentQuery.query('<selector suitable for your navigation view>')[0];
    2. Put new title and appropriate width:

    Code:
    nav.getNavigationBar().down('title').setHtml("Hello");
    nav.getNavigationBar().down('title').setWidth(100);