Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    May 2010
    Location
    Las Vegas, NV
    Posts
    133
    Answers
    7
    Vote Rating
    2
    billtricarico is on a distinguished road

      0  

    Default Answered: How To Create a SPAN tag without a DIV?

    Answered: How To Create a SPAN tag without a DIV?


    Hello,

    I am using the DomHelper to generate some HTML, but everything is getting wrapped in a DIV tag. I would like my parent tag to be a DIV (which it is) but I want the child tags to be SPAN tags only. It seems that ExtJS wraps everything in DIVs, even plain HTML.

    Thanks.


  2. #2
    Sencha - Community Support Team friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
    friend has a spectacular aura about friend has a spectacular aura about

      0  

    Default


    Try something like this:

    Code:
    Ext.DomHelper.append(Ext.getBody(), {
      tag: 'div',
      children: [{
        tag: 'span 1',
        html: 'Span 1'
      },{
        tag: 'span 2',
        html: 'Span 2'
      },{
        tag: 'span 3',
        html: 'Span 3'
      }]
    })

  3. #3
    Sencha User
    Join Date
    May 2010
    Location
    Las Vegas, NV
    Posts
    133
    Answers
    7
    Vote Rating
    2
    billtricarico is on a distinguished road

      0  

    Default


    Using your example, having a parent <div> tag is fine. But each of the children <span> tags will be wrapped in yet another <div> tag. That's just unnecessary overhead in my opinion.

  4. #4
    Sencha - Community Support Team mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    2,710
    Answers
    33
    Vote Rating
    104
    mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all

      0  

    Default


    No, each span is not wrapped in any div. Try running this in Firebug.

    Code:
    <div>
    <span 1="">Span 1</span>
    <span 2="">Span 2</span>
    <span 3="">Span 3</span>
    </div>

  5. #5
    Sencha User
    Join Date
    May 2010
    Location
    Las Vegas, NV
    Posts
    133
    Answers
    7
    Vote Rating
    2
    billtricarico is on a distinguished road

      0  

    Default


    Ok then the problem I am facing is that the children are actually Ext components. It's the fact that's it's a component that creates that outer <div> wrapper. I wanted some class-level functionality for my <span> tags, to treat them as individual objects. But extending Ext.Container wraps them in <div> tags.

    Thanks.

  6. #6
    Sencha User
    Join Date
    May 2010
    Location
    Las Vegas, NV
    Posts
    133
    Answers
    7
    Vote Rating
    2
    billtricarico is on a distinguished road

      0  

    Default


    How can I make those Ext.Component <div> tags be display:inline instead of display:block?

  7. #7
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,616
    Answers
    426
    Vote Rating
    581
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  8. #8
    Sencha User
    Join Date
    May 2010
    Location
    Las Vegas, NV
    Posts
    133
    Answers
    7
    Vote Rating
    2
    billtricarico is on a distinguished road

      0  

    Default


    @ evan... this looks exactly like what I need. Thanks!

Thread Participants: 3