title: How to set (title of) detail view with Ext navigation view
body: <p>What's the proper way of setting the (title of) a detail view with an Ext navigation view?</p>
  
  <p><strong>1st approach</strong></p>
  
  <p>In the <a href="https://github.com/senchalearn/Presidents" rel="nofollow">Sencha list tutorial</a> (<a href="http://vimeo.com/37212149" rel="nofollow">video</a>) the controller does</p>
  
  <pre><code>this.getMain().push({
    xtype: 'presidentdetail',
    title: record.fullName(),
    data: record.getData()
  });
  </code></pre>
  
  <p>and the <a href="https://github.com/senchalearn/Presidents/blob/master/app/view/PresidentDetail.js" rel="nofollow">detail view</a> is a regular <code>Ext.Panel</code> with a tpl.</p>
  
  <p><strong>2nd approach</strong></p>
  
  <p>However, the <a href="http://cdn.sencha.com/touch/sencha-touch-2.2.0/examples/navigationview/index.html" rel="nofollow">navigation view example</a> that ships with the Sencha Touch download (code <a href="https://github.com/ModusCreateOrg/sencha-touch-in-action-examples/tree/master/touch/examples/navigationview" rel="nofollow">here</a>) takes a totally different approach. Here the controller essentially does</p>
  
  <pre><code>this.showContact = Ext.create('AddressBook.view.contact.Show');
  this.showContact.setRecord(record);
  this.getMain().push(this.showContact);
  </code></pre>
  
  <p>and the detail view contains quite a bit of code I don't understand (yet)</p>
  
  <pre><code>Ext.define('AddressBook.view.contact.Show', {
    extend: 'Ext.Container',
    ...
    config: {
      title: 'Information',
      baseCls: 'x-show-contact',
      layout: 'vbox',
  
      items: [
        {
          id: 'content',
          tpl: ...
        },
        ...
    },
    updateRecord: function (newRecord) {
      if (newRecord) {
        this.down('#content').setData(newRecord.data);
         ..
      }
    }
  });
  </code></pre>
  
  <p><strong>Confusion</strong></p>
  
  <p>For a Sencha/Ext rookie like me this is confusing. What advantages does one approach have over the other? How are they different in what they achieve?</p>
  
  <p>The first approach updates the title of the detail view (which effectively is the title in the navigation bar) in the controller. I have not yet found out how to do the same using second approach. Any hints?</p>