1. #1
    Sencha User
    Join Date
    Feb 2008
    Posts
    99
    Vote Rating
    0
    sekaijin is on a distinguished road

      0  

    Default Howto use template for making tabPanel content

    Howto use template for making tabPanel content


    I use a tabPanel with dynamic addition of tabs.

    I would like to use template to construct my tabs.
    How to link a template and a panel and load data in flight?
    How to put components such as grid and formPanel intabs?
    How to mix of html and of components into the body of a panel?

    thank
    A+JYT

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,399
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Template to create panel markup
    Check out this simple user extension which I suggested to a user in the Premium Help a while back.
    http://extjs.com/forum/showthread.ph...=templatepanel

    It will allow you to link an Ext.XTemplate or Ext.Template to a Panel. Then you can simply update it with the relevant data to populate that Panel.

    How to place components like GridPanel and FormPanel in a TabPanel
    Because GridPanel and FormPanel are both Panel's they can be used like a typical Panel. That means that they can be direct children of an Ext.TabPanel.

    Mixing plain html and components
    Let Ext manage components that you add to your containers and specify the relevant layout. If you need your own custom html markup place a dummy panel in the items collection and use the html configuration. You can then turn off the border with the border: false configuration.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Feb 2008
    Posts
    99
    Vote Rating
    0
    sekaijin is on a distinguished road

      0  

    Default


    Thank is nice that exactly that I'm searchind

    I've combinned Panel with table layout, templatePanel and formPanel

    thank
    A+jyt

Thread Participants: 1