1. #1
    Ext User
    Join Date
    Feb 2008
    Posts
    15
    Vote Rating
    0
    stevej is on a distinguished road

      0  

    Default How to put an existing div into a panel?

    How to put an existing div into a panel?


    I have a html page like
    <body><div id="content">somehting here</div></body>
    How can I put the existing div ("content") into a panel? Thanks.

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    77
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    use the 'contentEl' attribute when constructing the panel

  3. #3
    Ext User
    Join Date
    Feb 2008
    Posts
    15
    Vote Rating
    0
    stevej is on a distinguished road

      0  

    Default


    Quote Originally Posted by djliquidice View Post
    use the 'contentEl' attribute when constructing the panel
    Great. Thanks a lot!

  4. #4
    Sencha User
    Join Date
    Aug 2010
    Posts
    82
    Vote Rating
    0
    jacstofberg is on a distinguished road

      0  

    Default


    Hi there,

    I'm currently using "contentEl" to add an existing div (a jplayer div) to my panel. The problem is that I do not want it to be appended to the very end of my panel html, but would like to insert it inbetween other elements.

    How would I add an existing div element to my panel at a specified location? [e.g. like "panel.insert(index, element);" does]

    This would be most useful.

    Thanks,
    Jac