1. #1
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,232
    Vote Rating
    2
    mystix will become famous soon enough

      0  

    Default Ext.DomHelper.Template or Ext.Template?

    Ext.DomHelper.Template or Ext.Template?


    Hi jack,

    noticed you added a backwards compat statement Ext.DomHelper.Template = Ext.Template in the Template.js file.

    however, in the DomHelper.js file, you used the following code:
    Code:
        createTemplate : function(o){
            var html = createHtml(o);
            return new Ext.DomHelper.Template(html);
        }
    shouldn't DomHelper refer to the new Ext.Template constructor instead?

  2. #2
    Ext User
    Join Date
    Mar 2007
    Posts
    36
    Vote Rating
    0
    TheRebelGriz is on a distinguished road

      0  

    Default Ext.Template Examples

    Ext.Template Examples


    Does anyone have nay working examples that Ext.Template that they care to share that code here ???

    Thanks in advance!!

  3. #3
    Sencha - Community Support Team
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    1
    tryanDLS is on a distinguished road

      0  

    Default


    Look at the examples - feed-viewer.js, organizer.js, chooser.js all do templates.

  4. #4
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,189
    Vote Rating
    63
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      0  

  5. #5
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,189
    Vote Rating
    63
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      0  

    Default


    And another one that Jack had suggested on utilizing the formatting features of template:
    http://www.divergingpath.com/index.c...s-of-Templates

Similar Threads

  1. Ext.DomHelper.Template: one template, ten YUI grids
    By moraes in forum Community Discussion
    Replies: 11
    Last Post: 18 Dec 2012, 4:55 AM
  2. DomHelper.Template and UpdateManager
    By valc in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 4 Jan 2007, 8:44 AM
  3. Setting dropdowns when using DomHelper.Template
    By hady in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 2 Dec 2006, 4:46 AM
  4. [OPEN] DomHelper.Template.compile
    By Animal in forum Ext 1.x: Bugs
    Replies: 1
    Last Post: 26 Oct 2006, 7:17 AM