Results 1 to 2 of 2

Thread: Panel with template renders null objects as null string

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3163 in a recent build.
  1. #1
    Touch Premium Member
    Join Date
    Aug 2010
    Location
    New York, NY
    Posts
    66
    Vote Rating
    1
      0  

    Default Panel with template renders null objects as null string

    I have a panel with a template like this:

    Code:
    {
      xtype:'panel',
      tpl: 'first name is {fname}'
    }
    Now i update the panel and with null it actually shows the string null. This is not how it worked in sencha touch 1 and it should not say the string null.

    I am updating like this:
    Code:
    panelObj.setData({fname:null});
    Result is that I see this:

    first name is null
    What am i doing wrong

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,062
    Vote Rating
    1390
      0  

    Default

    I'm actually going to open this as a bug.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

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