HZNM.COM
welcome to my space
X
Search:  
 HOME   Separation/spacing on Ext.Panel
Separation/spacing on Ext.Panel
Published by: wktd 2010-03-13
Welcome to:hznm.com

  • video about Brief Facts - Srebrenica Massacre And Other Myths Of ::
    10 posts - 3 authors - Last post: Jun 18, 2009http://www.forum.hr/archive/index.php/t-190302.html. On the picture in black uniform on the ground it`s ustasha,on the horse it`s commie and
    http://www.stormfront.org/forum/showthread.php?t=592245&page=7
    HOME
    Dear all,

    How to put some separation/spacing between item in Ext.Panel?

    Thanks in advance,
    Rudi.


  • Thank you very much Condor.

    1. I confused, why in that tutorial, it uses viewport? By using viewport, my newbie eyes see that we can have few panel on screen.

    2. I have read the link. I am sorry. I don't get it clear. So, if we want to do simple layout, we have to create some panels first? And add layout property to each panel? When the layout is being created?

    Could you show me one simple example to add one or two panel in layout?

    Thanks in advance,
    Rudi.


  • No, viewport isn't a layout.

    Please read this (http://extjs.com/learn/Ext_2_Overview#Layouts)...


  • I am following tutorial of TabPanel basic.

    There i found viewport. Is viewport a kind of layout? Can i use both? Or i have to pick one.

    Thanks.


  • Ext.Viewport is a outer container that stretches to the complete viewport. Other containers can also be Ext.Panel rendered to a fixed height/width element or an Ext.Window.

    Demonstration of most layouts:

    Ext.onReady(function(){
    new Ext.Viewport({
    layout: 'fit',
    items: [{
    title: 'Fit layout',
    layout: 'border',
    items: [{
    region: 'north',
    title: 'Border layout - north region',
    height: 100,
    split: true,
    html: 'with splitter'
    },{
    region: 'south',
    title: 'Border layout - south region',
    height: 100,
    collapsible: true,
    floatable: true,
    html: 'collapsible and floatable'
    },{
    region: 'east',
    title: 'Border layout - east region',
    width: 200,
    layout: 'accordion',
    items: [{
    title: 'Accordion layout - panel 1',
    html: 'Dummy content'
    },{
    title: 'Accordion layout - panel 2',
    html: 'Dummy content'
    }]
    },{
    region: 'west',
    title: 'Border layout - west region',
    width: 200,
    html: 'Dummy content',
    layout: 'absolute',
    items: [{
    x: 50,
    y: 50,
    height: 100,
    width: 100,
    xtype: 'box',
    style: 'border: 1px solid black;',
    autoEl: {cn: 'Absolute layout - (50,50)'}
    }]
    },{
    region: 'center',
    title: 'Border layout - center region',
    xtype: 'tabpanel', // tabpanel uses card layout
    activeTab: 0,
    layoutOnTabChange: true,
    items: [{
    title: 'Card layout - card 1',
    xtype: 'form', // formpanel uses form layout
    labelWidth: 120,
    bodyStyle: 'padding: 5px',
    items: [{
    fieldLabel: 'Form layout - field 1',
    xtype: 'textfield',
    value: 'No anchor'
    },{
    xtype: 'fieldset',
    title: 'Form layout - fieldset',
    autoHeight: true,
    anchor: '100%',
    Best big screen tv from Best Buy right now? [Archive] - Beyond3D Forum::
    63 posts - 15 authors - Last post: Jan 28, 2007(And probably Bubbles, can't get a big screen tv without hooking the Screen Size - and of course the available space you have in your entertainment center .. $249.99 Bush TV Stand for Tube TVs Up to 36" or Flat-Panel TVs Up to ://www.beyond3d.com/forum/showpost.php?p=657275&postcount=20).
    http://forum.beyond3d.com/archive/index.php/t-26855.html
    HOME
    layout: 'column',
    items: [{
    columnWidth: .5,
    title: 'Column layout - column 1',
    layout: 'form',
    labelAlign: 'top',
    items: [{
    fieldLabel: 'Form layout - field A',
    xtype: 'textfield',
    value: 'Nested inside column',
    anchor: '100%'
    }]
    },{
    columnWidth: .5,
    title: 'Column layout - column 2',
    layout: 'form',
    labelAlign: 'top',
    items: [{
    fieldLabel: 'Form layout - field A',
    xtype: 'textfield',
    value: 'Nested inside column',
    anchor: '100%'
    }]
    }]
    },{
    hideLabel: true,
    xtype: 'textarea',
    value: 'Form layout - field 2, anchor: 0 -135',
    anchor: '0 -135'
    }]
    },{
    title: 'Card layout - card 2',
    html: 'Dummy content',
    layout: 'table',
    layoutConfig: {
    columns: 3
    },
    items: [{
    title: 'Table layout - cell 1',
    rowspan: 2,
    html: 'Dummy content'
    },{
    title: 'Table layout - cell 2',
    colspan: 2,
    html: 'Dummy content'
    },{
    title: 'Table layout - cell 3',
    html: 'Dummy content'
    },{
    title: 'Table layout - cell 4',
    html: 'Dummy content'
    }]
    }]
    }]
    }]
    });
    });


  • Use a layout that allows you to add padding (border, table, etc.). Depends on what type of layout you are going for.


  • Condor,

    Thank you very much. It works perfectly.





  • Challenging Books For A 14 Year Old?
    First guitar : acoustic or electric?

    You are looking at:hznm.com's Separation/spacing on Ext.Panel, click hznm.com to home
  • guys and girls if someone likes you and you know it then why dont they just come and tell you
  • do you think its bad to have alot of guy friends
  • scorpio men do you hate to be questioned if you love someone
  • was your best ual experience with someone other than your wife or husband
  • guy tips i know it 039 s cliche
  • ugh boys please helpp
  • { {boys } }if my dad dont like him
  • girl advice would be appreciated is it ok to ask a girl out through a myspace message sorry its so long
  • wife ask you a question like this one
  • am i expecting too much from my spouse on our 19 but recieved nothing and i mean nothing
  • need help with girls
  • is she interested i know there are a ton of them
  • how do i get over the love of my life
  • what do i do for my girlfriends birthday
  •  
  • should i date my exs sister
  • do you think that people get divorced too fast these days
  • i reali need opinions on marriage 16
  • i think he hate pda girls and guys please
  • good songs for a break up still longing to be with that person
  • my sister just got married and is moving away what is a good going away present
  • do you believe there is truly someone for everyone
  • never been kissed
  • is this wrong or am i just emotional
  • is this a sign my crush likes me
  • how do you mend a broken heart
  • my relationship has hit 039 the 039 wall
  • does this boy only talk to me for the wrong reasons
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 hznm.com        Site made:CFZ