PDA

View Full Version : Ext.Panel layout



Flcn
21 Jun 2010, 4:25 AM
Hello.
In my app i'm using Ext.Panel
now it is like


items:[{
region:'center',
items:[grid]
},{
region:'west',
...
},{...

but i want to create my own layout structure.
can i bind panel items to the html elements by ID ?

or what i must do to do it?

Condor
21 Jun 2010, 4:41 AM
1. Your current layout is overnested. It should be:

items: [
grid, // and grid should contain region: 'center'
{
region: 'west',
...
}
]

2. What exactly are you trying to accomplish? It's usually better to embed existing HTML inside a viewport then trying to render Ext component in existing markup.

Flcn
21 Jun 2010, 6:51 AM
I just trying to make my own layout of panel.

not like " eask ,west,north". I need about 6 different regios.

and my second questinon.
how to add HTML in one region?

Condor
21 Jun 2010, 6:59 AM
1. Normally you make these layouts by nesting existing Ext layouts. What it the layout you are trying to create?
2. You can use the 'html' or 'contentEl' config option.

Flcn
21 Jun 2010, 7:34 AM
something like this:
http://dev.ulab.ru/attachments/107/phonebook_pre.png

here is 4 rigeon.

is nesting existing Ext layouts - right way?

Condor
21 Jun 2010, 7:37 AM
Password protected site

Flcn
21 Jun 2010, 8:36 AM
omg.
Sorry.

http://ipicture.ru/uploads/100621/JGTuZc0kGl.png

Animal
21 Jun 2010, 9:19 AM
:)) That's what we brits call a "fag packet spec" ;)

Flcn
22 Jun 2010, 12:45 AM
But that about my problem? )

Condor
22 Jun 2010, 2:32 AM
Something like:

- border layout
- east region: accordion layout
- panels
- center region: border layout
- center region: hbox layout
- panel 1
- panel 2
- south region