Javascript 想在rallyreleasecombobox中显示发布日期吗
我正在使用Javascript 想在rallyreleasecombobox中显示发布日期吗,javascript,extjs,rally,Javascript,Extjs,Rally,我正在使用rallyreleasecombobox在combobox中显示版本,并且我能够显示包含所有版本的combobox,但我希望从combobox中删除将来的版本。只想显示仍在运行或已完成的版本。 下面是我写的一些代码 请对此提出任何建议,提前谢谢 this.down('#SevFilter').add({ xtype: 'rallyreleasecombobox', //mul
rallyreleasecombobox
在combobox中显示版本,并且我能够显示包含所有版本的combobox,但我希望从combobox中删除将来的版本。只想显示仍在运行或已完成的版本。下面是我写的一些代码 请对此提出任何建议,提前谢谢
this.down('#SevFilter').add({
xtype: 'rallyreleasecombobox',
//multiSelect: true,
itemId: 'priorityComboBox',
fieldLabel: 'Release Start:',
model: 'release',
width: 400,
valueField: 'ReleaseStartDate',
displayField: 'Name',
// multiSelect: true,
//field: 'Name',
_removeFunction: function(){
console.log("this.store");
},
listeners: {
//select: this._onSelect,
select: this._onFirstReleaseSelect,
scope: this
}
});
此示例通过向“发布”组合框添加筛选器来删除未来的发布
var today = new Date();
var filters = [
{
property : 'ReleaseStartDate',
operator : '<=',
value : today
}
];
var rComboBox = Ext.create('Rally.ui.combobox.ReleaseComboBox',{
listeners:{
ready: function(combobox){
var rRef = combobox.getRecord().get('_ref');
this._getData(rRef);
},
select: function(combobox){
var rRef = combobox.getRecord().get('_ref');
this._getData(rRef);
},
scope: this
}
});
rComboBox.store.filter(filters);
this.add(rComboBox);
var today=新日期();
变量过滤器=[
{
属性:“ReleaseStartDate”,
接线员:'