0
私はテキストフィールドのチェックボックスのペアを持つフィールドセットを持っています。Ext jsチェックボックスとテキストフィールドをペアにする方法は?
私はテキストフィールドのチェックボックスのペアを持つフィールドセットを持っています。Ext jsチェックボックスとテキストフィールドをペアにする方法は?
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
}
]
}
]
}
あなたは、チェックボックスのラベルを使用したくありませんか? http://docs.sencha.com/extjs/6.2.1/classic/Ext.form.field.Checkbox.html –