1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    153
    Vote Rating
    1
    JohnT is on a distinguished road

      0  

    Default View / Template - the difference?

    View / Template - the difference?


    Hey guys,

    I am starting to expand my EXT use from simple dialogs and message boxes, to more advanced stuff.

    I am now studying Views and Templates, but I am having a hard time seeing the difference. I have studied Jack's image chooser example quite a bit. Also, I have been in the docs, and unless I am wrong, don't they both do the same thing essentially?

    I would like to get a fundamental understanding of the two.

    A view uses a template, but a template does not need a view?

    Is a view just a "wrapper" for a template, which we can add event listeners and such to?

    Thanks. As always, appreciate your help.

    JohnT

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    4
    tryanDLS is on a distinguished road

      0  

    Default


    A View is generally used to build a quick template-based display of datamodel, rather than building a more complex grid. I thnk there's a blog post that illustrates doing this with JSON data.

    Templates can be used for any repetitious html creation, not necessarily tied to a datamodel.

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    153
    Vote Rating
    1
    JohnT is on a distinguished road

      0  

    Default


    Thanks, Tim. I am playing with some examples now.

    Ps. put on a new signature. i have been getting emails and PM's with questions way out of my league. This should clear up my javascript programming level. lol

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. Ext.DomHelper.Template or Ext.Template?
    By mystix in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 1 Mar 2007, 3:05 PM
  3. IE6 FF difference in toolbar menu
    By vtswingkid in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 22 Feb 2007, 8:44 AM
  4. YAHOO.ext.View and DomHelper.Template
    By ericd in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 4 Feb 2007, 4:37 AM
  5. difference between onEvent.subscribe and addListener(event
    By sjivan in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 28 Nov 2006, 5:57 PM

Thread Participants: 1