Results 1 to 2 of 2

Thread: NavigationView fails to listen to child views' bound titles

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User
    Join Date
    Oct 2017
    Vote Rating

    Default NavigationView fails to listen to child views' bound titles

    Minimal Working Example
    Ext.define('ExtJSBUG.NavigationView.MWE', {
    	extend: 'Ext.Container',
    	xtype: 'mwe',
    	config: {
    		layout: 'vbox',
    		items: [{
    			xtype: 'navigationview',
    			reference: 'nav',
    			flex: 1,
    			items: [{
    				xtype: 'mwepanel',
    				layout: 'vbox',
    				items: [{
    					xtype: 'button',
    					text: 'Push a new view!',
    					handler: () => {
    							title: 'Second',
    							html: 'Second view!',
    Ext.define('ExtJSBUG.NavigationView.MWEPanel', {
    	extend: 'Ext.Panel',
    	xtype: 'mwepanel',
    	viewModel: 'mwepanel',
    	bind: {
    		title: '{boundTitle}',
    Ext.define('ExtJSBUG.NavigationView.MWEPanelViewModel', {
    	extend: '',
    	alias: 'viewmodel.mwepanel',
    	data: {
    		boundTitle: 'Edit Stuff',
    Problem Description

    If I use a NavigationView with panels that have their title bound, the navigation view will fail to pick them up.

    If, as a workaround, I also define an empty title in the config, then only the config's original title will be taken into account, rather than the one updated by the binding.

    The problem is NavigationView ignores bindings. It also ignores titles put in eventedConfig and does not seek to listen to updates on the title.

    For me the core problem is that no data binding is in place between child view title and NavigationView. However if that somehow was impossible then at least titles put in eventedConfig should be supported. The doc should also be clearer about current limitations / about how the child view's title is read.

  2. #2
    Ext Team Member
    Join Date
    Sep 2017
    Vote Rating


    Thank you for sharing this with us. I have passed this along to the support team and asked them to look into this at their earliest convenience.



Similar Threads

  1. Replies: 3
    Last Post: 4 Feb 2015, 6:50 AM
  2. Replies: 1
    Last Post: 15 Oct 2014, 3:29 PM
  3. Replies: 4
    Last Post: 30 May 2014, 8:19 AM
  4. NavigationView Events Not Bound when View is Not Top Level
    By vote539 in forum Sencha Touch 2.x: Bugs
    Replies: 4
    Last Post: 16 Jan 2014, 9:00 AM
  5. NavigationView adding buttons on certain views
    By dewil_de in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 13 Jun 2012, 5:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts