Ich habe ein Panel, wo ich 2combo-Boxen haben. Ich muss eine Schaltfläche neben einem der Kombinationsfelder hinzufügen. Sowohl das Kombinationsfeld und Schaltfläche in der gleichen line.Below kommen ist mein PanelHinzufügen von Button neben einem Kombinationsfeld in extjs
filterPanel = new Ext.Panel({
renderTo: document.body,
bodyStyle: 'padding-top: 6px;',
title: 'Filters',
collapsible: true,
collapsed: true,
shadow: 'sides',
width: 400,
frame: true,
floating: true,
layout: 'form',
labelWidth: 150,
buttonAlign: 'center',
items: [
{
xtype: 'combo',
id: 'xFilter',
width: 200,
listWidth: 200,
fieldLabel: 'Filter',
store: filterStore,
displayField:'filterDisp',
valueField:'filterVal',
typeAhead: true,
editable: true,
mode: 'local',
forceSelection: true,
triggerAction: 'all',
selectOnFocus:false
},{
xtype: 'combo',
id: 'xStatus',
width: 200,
listWidth: 200,
fieldLabel: 'Status',
store: statusStore,
displayField:'statusDisp',
valueField:'statusVal',
typeAhead: true,
editable: false,
mode: 'local',
forceSelection: true,
triggerAction: 'all',
selectOnFocus:false
}
]
});
muss ich die Taste, um das erste Kombinationsfeld benachbart kommen, so dass sowohl die erste Combo und der Knopf sein sollte gleich Linie. Könnte jemand bitte mir dabei helfen?
Vielen Dank im Voraus ...
Haben Sie versucht, CSS zu verwenden? – Amalea