PDA

View Full Version : YAHOO.ext.Pane


zquirm
11-08-2006, 08:20 PM
I think a great addition to your BorderLayout would be a Pane extension.

Imagine a BorderLayout Region filled with boxes (Panes) that grow and shrink depending on the width of the Region, or if the Region is too small, the Pane would jump down to the next row. You should be able to set maxColumns, maxWidth (of Pane), minWidth (of Pane), maxHeight (of Pane), and minHeight (of Pane). I suppose they should work like floating Regions so that they could have toolbars too.

It would work in the same way as this site: http://www.designologue.com/mint/

but what I'm envisioning is much more simple - just a box, text, and perhaps a toolbar.

Ultimately, it would be great to create these Panes from XML.

Anyway...I thought this might be useful.

let me know if this makes sense.

thanks.

jack.slocum
11-08-2006, 08:55 PM
Something similar (although it doesn't expand and contract) could be done with a YAHOO.ext.View + your XML data + having the elements float to the left. This is how I recently make a thumbnail view for an image library.

zquirm
11-09-2006, 12:31 AM
is there an example I could see?

Animal
11-09-2006, 03:57 AM
Yes, post an example!

I'll probably need floating containers which allow themselves to flow in a given container, with each one containing a DDGrid.

The application problem is assigning Transport Instructions (Rows in a DDGrid in the "north" Region) to Vehicle Running Sheets - multiple DDGrids floating in the "center" region.

I'll be dragging rows from the top DDGrid and dropping them into the grids in the "Panes". Of course they may be dragged back out into other VRSs, or dragged back to the top Grid to become unnasigned.

jack.slocum
11-09-2006, 04:48 AM
Unfortunately it was done for a private party.

It's very easy though. Just make a YAHOO.ext.View (like in the feed-viewer), and then in your template have a bunch of divs with a fixed width/height and float them left.

I will make an example soon. Examples + documentation updates are next on my list.