1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    Tallinn, Estonia
    Posts
    4
    Vote Rating
    0
    xytop is on a distinguished road

      0  

    Question Unanswered: how to change title text Ext.navigation.view's navigationBar?

    Unanswered: how to change title text Ext.navigation.view's navigationBar?


    Hi!

    I need to
    dynamically changea titleExt.navigation.View.How?

    thanks!
    (sorry for my english)

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,812
    Answers
    3467
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    It uses the title off of the items.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Location
    Tallinn, Estonia
    Posts
    4
    Vote Rating
    0
    xytop is on a distinguished road

      0  

    Default


    How? setTitle for items?

  4. #4
    Sencha User
    Join Date
    Mar 2012
    Location
    Tallinn, Estonia
    Posts
    4
    Vote Rating
    0
    xytop is on a distinguished road

      0  

    Default


    I try to use Ux.locale.Manager.

  5. #5
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,812
    Answers
    3467
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    If you are trying to change the title after the item has been created and used in the nav view, currently there is no easy feat to do it.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  6. #6
    Sencha User
    Join Date
    Nov 2011
    Posts
    15
    Vote Rating
    0
    alanmies is on a distinguished road

      0  

    Default


    Will this (dynamically changing the title) be fixed anytime soon? I know one shouldn't use Ext.navigation.Bar directly, but it used to be possible to do "NavigationView.getNavigationBar().setTitle('something')" (where NavigationView is naturally an instance of said class) - the functions still exist, but apparently do nothing.

  7. #7
    Sencha User
    Join Date
    Mar 2012
    Posts
    1
    Vote Rating
    0
    mjeanes is on a distinguished road

      0  

    Default


    I am also interested in updating the title after a view is displayed for the first time. In my scenario, my NavigationView contains a List of values, and I would like the title to reflect to sum of those values. The values can and do change while the view is being displayed (by updating the underlying Store), and I would like to be able to update the title to reflect the new sum.

    I understand that there is no easy way to do this currently. I have looked into the code for the NavigationView/NavigationBar, and haven't found a good way to achieve this behavior. Is it something that is on the road map to be added to the NavigationView? I would think that if the NavigationView takes its title from the currently displayed view, it should also be able to monitor that view to see if the title changes and update itself accordingly.

  8. #8
    Sencha User
    Join Date
    Jan 2012
    Posts
    14
    Vote Rating
    0
    alpchen is on a distinguished road

      0  

    Default


    > there is no easy feat to do it
    what is the hard way? any way?


  9. #9
    Sencha User
    Join Date
    Mar 2012
    Posts
    1
    Vote Rating
    0
    zloyag is on a distinguished road

      0  

  10. #10
    Sencha User
    Join Date
    Jul 2012
    Location
    JiNan
    Posts
    10
    Vote Rating
    1
    felixfeng is on a distinguished road

      1  

    Default I found a solution to resolved this issue

    I found a solution to resolved this issue


    YourInnerPanel.config.title = "Title";
    Note: YourInnerPanel is a panel that navigation view will push.