1. #21
    Touch Premium Member
    Join Date
    Aug 2011
    Posts
    55
    Vote Rating
    0
    0steve is on a distinguished road

      0  

    Default


    Hi,

    Can anyone provide me an example of how to use XTemplate in Sencha Architect 2.1?

    Especially entering "fn."

    I am not sure on how to achieve this:

    Code:
    itemTpl: new Ext.XTemplate(           
                  '<p>{name}',
                  '<tpl if="age &gt; 17">',
                  '<button>Vote</button>',
                  '</tpl>',
                  '</p>'
    )
    Thanks in Advance.

  2. #22
    Sencha User
    Join Date
    Feb 2012
    Posts
    3
    Vote Rating
    0
    dmullins is on a distinguished road

      0  

    Default


    I believe I came across a similar issue. The "renderer" property was not available in Architect, for example for a grid column. I added it as a custom property, and then added the XTemplate definition/function name that I required....and it worked/showed up in the right place. Subsequently, the "renderer" property showed up as expected by default (i.e. did not show as a custom property)...but there was apparently some strange behaviour here initially.

Tags for this Thread