2017-06-07 5 views

答えて

1

layout: 'hbox'の設定でfieldContainerを使用する必要があります。例えば

var formConfig = { 
    xtype: 'form' 
    // Your form configuration here 
    items: [ 
     { 
      xtype: 'fieldcontainer', 
      fieldLabel: 'My pair label', // If you want a label for both fields, or you can put fieldLabel to either/both/none fields 
      layout: { 
       type: 'hbox', 
       align: 'middle', // or any other align of your choosing 
      }, 
      items: [ 
       { 
        xtype: 'checkbox', 
        // your checkbox configuration here, i.e. hideLabel: true or fieldLabel: 'checkbox label' 
       }, 
       { 
        xtype: 'textfield', 
        // your textfield configuration here 
       } 
      ] 
     } 
    ] 
} 
関連する問題