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
    Apr 2008
    Posts
    365
    Vote Rating
    0
    wuschba is on a distinguished road

      0  

    Question Which container to use to subdivide a form with HBox and VBox?

    Which container to use to subdivide a form with HBox and VBox?


    Hello! I want to make a FormPanel with several rows, in every row there should be some formfields. The form should be flexible in horizontal size (the formfields should resize and fill the whole width of the FormPanel when it's resized), so I guess using VBoxes as rows and inside them HBoxes is the right way to do it (is it??!?)

    My Q: What container should I use to put my rows inside? Ext.panel.Panel, Ext.container.Container or Ext.container.Container any other thing? The container should be invisible, so no special appearance is needed.

  2. #2
    Sencha User
    Join Date
    Jan 2011
    Posts
    11
    Vote Rating
    0
    Vishal.akhia is on a distinguished road

      0  

    Default column layout

    column layout


    use Ext.panel with column layout.


    example:

    {
    xtype: "panel",
    layout: "column",
    border: false,
    bodyStyle: "padding: 5px 5px 0;",
    items: [{
    columnWidth: .50,
    xtype: 'form',
    border: false,
    width: 370,
    height: 70,
    items: [{
    xtype: 'textfield',
    id: "bidNameTxt",
    fieldLabel: "Bid Name",
    maxLength: 250,
    labelWidth: 75,
    width: 310,
    enableKeyEvents: true,
    listeners:{
    scope: this,
    'keyup': function(src, evt){
    task.delay(500);
    }
    }
    },
    {
    xtype: 'combo',
    id: "cmbFolder",
    labelWidth: 75,
    fieldLabel: "Bid Group",
    store: bidFolderStore,
    forceSelection: true,
    typeAhead: true,
    triggerAction: 'all',
    editable: false,
    queryMode: 'local',
    displayField: 'folder',
    valueField: 'id'
    },
    {
    xtype: "panel",
    border: false,
    header: false,
    height: 20,
    style: "width: 100%;",
    items: {
    id: "messageLbl",
    xtype: "label",
    style: "width: 100%;"
    }
    }]
    },
    {

    columnWidth: .40,
    xtype: "panel",
    id: "bidStatusPnl",
    layout: 'column',
    border: false,
    header: false,
    items:[{
    xtype: 'label',
    id: 'iconLbl',
    cls: "iconStatus",
    border: false,
    html: '<img src="images/active.png" title="Active" class="imgMargin">'
    }, {
    xtype: 'label',
    id: 'statusLbl',
    cls: "bidStatusPnl",
    html: '<span class="activeText">Active</span>'
    },
    {
    xtype: 'button',
    text: "Clone Bid",
    id: "cloneBtn",
    width: 60,
    listeners: {
    "click":function()
    {
    //window.location = Ext.jmc.common.paths.get("AddBid")+ "?BidNameClone="+ escape(Ext.getCmp("bidNameTxt").getValue()) ;
    }
    }
    }]
    }]

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,519
    Vote Rating
    813
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Please wrap code in the appropriate code tags.

    your form.Panel should use Containers to your columns/rows
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.