PDA

View Full Version : With which component, if any, does this sort of code correspond?



js_coder
3 Sep 2009, 12:41 PM
I'm working on an older codebase that uses 1.x and a newer one on 3.x. The older one has some manually composed HTML that works with the theme, and seems like a hack job:


<div class="x-box-blue">
<div class="x-box-tl">
<div class="x-box-tr">
<div class="x-box-tc">
</div>
</div>
</div>
<div class="x-box-ml">
<div class="x-box-mr">
<div class="x-box-mc">
<!-- Content -->
</div>
</div>
</div>
<div class="x-box-bl">
<div class="x-box-br">
<div class="x-box-bc">
</div>
</div>
</div>
</div>What component(s) could I use to generate a similar interface? It's a rounded rectangle, styled similarly to the rest of the default theme.

js_coder
3 Sep 2009, 1:09 PM
Oh, it looks like I just have to use Element.boxWrap and add the x-box-blue class.