1
我有問題在extjs
的組合框的Select索引中給出寬度。如何設置在組合框中選擇索引寬度在extjs
我的代碼如下;
var inventorytbar = [
{
xtype: 'combo',
text: 'Filter Category',
hiddenName: 'local-states',
store: storeCat,
displayField: 'state',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
autoWidth: true,
editable:false,
value: 'All Inventory',
selectOnFocus:true,
boxMaxWidth: 500,
listeners:
{
'select': function (combo, record, index)
{
var catid = record.get('abbr');
selectedComboCat = catid;
var catname = record.get('state');
var newcatname = catname.replace(/ /g, '');
combo.setValue(newcatname);
}
}
}
爲什麼你設置'php'標籤? – pltvs 2010-11-01 07:50:21
你想設置選擇框的寬度,或者得到它? – SW4 2010-11-01 09:09:08