fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.4 KiB

8 years ago
/**
* 普通控件
*
* @class BI.YearCard
* @extends BI.MultiDateCard
*/
BI.YearCard = BI.inherit(BI.MultiDateCard, {
_defaultConfig: function () {
return $.extend(BI.YearCard.superclass._defaultConfig.apply(this, arguments), {
baseCls: 'bi-multidate-yearcard'
});
},
_init: function () {
BI.YearCard.superclass._init.apply(this, arguments);
},
dateConfig: function () {
return [{
selected: true,
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Year_Prev"),
8 years ago
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV
8 years ago
},
{
isEditorExist: true,
text: BI.i18nText("BI-Multi_Date_Year_Next"),
8 years ago
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_AFTER
8 years ago
},
{
isEditorExist: false,
8 years ago
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_BEGIN,
8 years ago
text: BI.i18nText("BI-Multi_Date_Year_Begin")
},
{
isEditorExist: false,
8 years ago
value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_END,
8 years ago
text: BI.i18nText("BI-Multi_Date_Year_End")
}]
},
defaultSelectedItem: function () {
8 years ago
return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_YEAR_PREV;
8 years ago
}
});
BI.YearCard.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut('bi.yearcard', BI.YearCard);