2
tbar : new Ext.Toolbar({
items : [
'',{
xtype : 'radiofield',
name : 'searchType',
value : 'order_name',
boxLabel : 'Order Name'
},'',{
xtype : 'radiofield',
name : 'searchType',
value : 'order_no',
boxLabel : 'Order No'
},'',{
xtype : 'radiofield',
name : 'searchType',
value : 'status',
boxLabel : 'Status'
},'=',{
xtype : 'textfield',
name : 'keyword',
value : 'Keyword'
},'|',{
xtype : 'datefield',
name : 'order_from',
fieldLabel : 'From ',
labelStyle : 'width:50px',
value : new Date()
},'~',{
xtype : 'datefield',
name : 'order_to',
fieldLabel : "To ",
labelStyle : 'width:50px',
value : new Date()
},'|',{
xtype : 'button',
text : "Search"
}
]
})
我把我的问题到附加的图像。
(比按钮和删除的DateField奇怪右边缘之间的空间的空间。)
并在TBAR按钮看起来不像按钮。它看起来只是文字。任何人都知道让它看起来很好看按钮?
谢谢!
谢谢! (这个例子真的很棒!) – 2012-02-29 19:09:56
我可以再问一个问题吗?我使用“tbar:new Ext.Toolbar({...”)创建了工具栏,但是您使用“tbar:Ext.create('Ext.Toolbar',{...”创建了工具栏。您是否知道如何不同以及以何种方式我遵循?谢谢! – 2012-02-29 19:16:26
创建ExtJS组件时,不应再使用“new”关键字,而应使用Ext.create。 – dbrin 2012-02-29 21:30:26