title: sencha touch :: adding a background-image to a Panel
body: <p>I try to add an image to the background of a panel. the image comes from loaded data.
  i tried the following code, which did not work:</p>
  
  <pre><code>var topPanel = new Ext.Panel({
          flex:1,
          title:'topPanel',
          style:'style="background-image: url('+this.jsonData.picURL+');'
  
  });
  </code></pre>
  
  <p>when I create a list it work great with 'itemTpl'.</p>
  
  <p>I also tried </p>
  
  <pre><code>style:'background-image: url({picURL});'
  </code></pre>
  
  <p>together with</p>
  
  <pre><code>store: {
              fields: ['firstName','lastName', 'picURL'],
              data: this.jsondData
          }
  </code></pre>
  
  <p>but then I get the message</p>
  
  <blockquote>
    <p>[[object Object]] is not a valid
    argument for
    'Function.prototype.apply'.</p>
  </blockquote>
  
  <p>any thoughts could help!
  thnx</p>