forked from fanruan/fineui
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.
43 lines
1.2 KiB
43 lines
1.2 KiB
/** |
|
* 普通控件 |
|
* |
|
* @class BI.DayCard |
|
* @extends BI.MultiDateCard |
|
*/ |
|
BI.DayCard = BI.inherit(BI.MultiDateCard, { |
|
|
|
_defaultConfig: function () { |
|
return $.extend(BI.DayCard.superclass._defaultConfig.apply(this, arguments), { |
|
baseCls: 'bi-multidate-daycard' |
|
}); |
|
}, |
|
|
|
_init: function () { |
|
BI.DayCard.superclass._init.apply(this, arguments); |
|
}, |
|
|
|
dateConfig: function () { |
|
return [{ |
|
isEditorExist: true, |
|
selected: true, |
|
text: BI.i18nText("BI-Multi_Date_Day_Prev"), |
|
value: BICst.DATE_TYPE.MULTI_DATE_DAY_PREV |
|
}, |
|
{ |
|
isEditorExist: true, |
|
text: BI.i18nText("BI-Multi_Date_Day_Next"), |
|
value: BICst.DATE_TYPE.MULTI_DATE_DAY_AFTER |
|
}, |
|
{ |
|
isEditorExist: false, |
|
value: BICst.DATE_TYPE.MULTI_DATE_DAY_TODAY, |
|
text: BI.i18nText("BI-Multi_Date_Today") |
|
}]; |
|
}, |
|
|
|
defaultSelectedItem: function () { |
|
return BICst.DATE_TYPE.MULTI_DATE_DAY_PREV |
|
} |
|
}); |
|
BI.DayCard.EVENT_CHANGE = "EVENT_CHANGE"; |
|
BI.shortcut('bi.daycard', BI.DayCard);
|
|
|