/** * 普通控件 * * @class BI.WeekCard * @extends BI.MultiDateCard */ BI.WeekCard = BI.inherit(BI.MultiDateCard, { _defaultConfig: function () { return $.extend(BI.WeekCard.superclass._defaultConfig.apply(this, arguments), { baseCls: 'bi-multidate-weekcard' }); }, _init: function () { BI.WeekCard.superclass._init.apply(this, arguments); }, dateConfig: function () { return [{ selected: true, isEditorExist: true, text: BI.i18nText("BI-Multi_Date_Week_Prev"), value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV }, { isEditorExist: true, text: BI.i18nText("BI-Multi_Date_Week_Next"), value: BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_AFTER }]; }, defaultSelectedItem: function () { return BI.MultiDateCombo.DATE_TYPE.MULTI_DATE_WEEK_PREV; } }); BI.WeekCard.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut('bi.weekcard', BI.WeekCard);