Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: xtemplate?

  1. #11
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      0  

    Default

    Quote Originally Posted by MichelleWong View Post
    When will architect 2.1 come out?
    After we finish testing it, etc

    Quote Originally Posted by MichelleWong View Post
    Besides, how can we activate the Xtemplate in stead of using itemTpl? Or I might be confused with?
    XTemplates can be added with their appropriate configurations, tpl, itemTpl, etc
    Aaron Conran
    @aconran

  2. #12
    Sencha User
    Join Date
    Jul 2012
    Posts
    14
    Vote Rating
    1
      0  

    Default

    aconran,
    where is in SA 2 one can put Xtemplate member functions?
    for example in Panel's tpl

    <h2>Text</h2>
    <div>
    {[this.highlightSearchQueryWords(values.text)]}
    </div>

  3. #13
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      0  

    Default

    In Sencha Architect 2.1, templates become their own node. You can add functions to the template and they will become member functions.
    Aaron Conran
    @aconran

  4. #14
    Sencha User kitesurf's Avatar
    Join Date
    Jan 2012
    Location
    London, England
    Posts
    78
    Vote Rating
    7
      0  

    Default

    Quote Originally Posted by aconran View Post
    In Sencha Architect 2.1, templates become their own node. You can add functions to the template and they will become member functions.
    Hi Aaron, I assume Architect 2.1 is still to be released?

  5. #15
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      0  

    Default

    Quote Originally Posted by kitesurf View Post
    Hi Aaron, I assume Architect 2.1 is still to be released?
    Went out the door this morning
    http://www.sencha.com/blog/sencha-architect-2-1
    Aaron Conran
    @aconran

  6. #16
    Sencha User kitesurf's Avatar
    Join Date
    Jan 2012
    Location
    London, England
    Posts
    78
    Vote Rating
    7
      0  

    Default

    awesome, thanks Aaron!

  7. #17
    Sencha User kitesurf's Avatar
    Join Date
    Jan 2012
    Location
    London, England
    Posts
    78
    Vote Rating
    7
      0  

    Default

    Quote Originally Posted by aconran View Post
    I've had a read through of the release notes to check if there are any upgrade notes. I couldn't find any. Presumably there is no harm to existing projects by updating to Architect 2.1 or are there some caveats before doing that?

  8. #18
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      0  

    Default

    Quote Originally Posted by kitesurf View Post
    I've had a read through of the release notes to check if there are any upgrade notes. I couldn't find any. Presumably there is no harm to existing projects by updating to Architect 2.1 or are there some caveats before doing that?
    http://docs.sencha.com/architect/2/#!/guide/changelog

    We've tested lots of projects in the upgrade process without problems.
    Aaron Conran
    @aconran

  9. #19
    Sencha User
    Join Date
    Feb 2012
    Posts
    3
    Vote Rating
    0
      0  

    Default

    I am using Architect 2.1 and am having real difficulties defining an XTemplate still...I hope it is a user issue! There is no place to enter an XTemplate definition, e.g. to apply formatting to a grid column. I can add definitions, or Functions....neither of them populate the first config property of the XTemplate in code view (which is where the formatting would go). Any help appreciated

  10. #20
    Sencha User
    Join Date
    Feb 2012
    Posts
    3
    Vote Rating
    0
      0  

    Default

    I previously asked how to apply XTemplates to grid columns in Architect 2.1. I have now done this by adding a custom property of renderer...works OK. This is a very standard field though, not sure why it needs to be added in this manner

Page 2 of 3 FirstFirst 123 LastLast

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
  •