src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js
function _showDayPicker(){

		if (this._iMode == 3) {
			_hideYearPicker.call(this, true);
		}else if (this._iMode == 2) {
			_hideMonthPicker.call(this, true);
		}

		var oDate = this._getFocusedDate();
		var iItems = this._getItems();
		var oDatesRow = this.getAggregation("datesRow");
		var oDateRange = oDatesRow.getSelectedDates()[0];
		oDateRange.setStartDate(CalendarUtils._createLocalDate(oDate, true));

		// set number of days - but max number of days of this month
		var oLastDayOfMonth = new UniversalDate(oDate.getTime());
		oLastDayOfMonth.setUTCDate(1);
		oLastDayOfMonth.setUTCMonth(oLastDayOfMonth.getUTCMonth() + 1);
		oLastDayOfMonth.setUTCDate(0);
		var iLastDay = oLastDayOfMonth.getUTCDate();
		var iDays = Math.floor(iItems * 1.5);
		if (iDays > iLastDay) {
			// to be limited on real month length by opening
			iDays = iLastDay;
		}
		oDatesRow.setDays(iDays);

		if (oDatesRow.getDomRef()) {
			// already rendered
			oDatesRow.$().css("display", "");
		} else {
			var oRm = sap.ui.getCore().createRenderManager();
			var $Container = this.$("content");
			oRm.renderControl(oDatesRow);
			oRm.flush($Container[0], false, true); // insert it
			oRm.destroy();
		}

		this._showOverlay();

		// set start date and focus date
		_setDateInDatesRow.call(this, oDate);

		if (this._iMode == 0) {
			// remove tabindex from item
			var oTimesRow = this.getAggregation("timesRow");

			jQuery(oTimesRow._oItemNavigation.getItemDomRefs()[oTimesRow._oItemNavigation.getFocusedIndex()]).attr("tabindex", "-1");
		}

		this._iMode = 1;

	}
function _showDayPicker(){

		if (this._iMode == 3) {
			_hideYearPicker.call(this, true);
		}else if (this._iMode == 2) {
			_hideMonthPicker.call(this, true);
		}

		var oDate = this._getFocusedDate();
		var iItems = this._getItems();
		var oDatesRow = this.getAggregation("datesRow");
		var oDateRange = oDatesRow.getSelectedDates()[0];
		oDateRange.setStartDate(CalendarUtils._createLocalDate(oDate, true));

		// set number of days - but max number of days of this month
		var oLastDayOfMonth = new UniversalDate(oDate.getTime());
		oLastDayOfMonth.setUTCDate(1);
		oLastDayOfMonth.setUTCMonth(oLastDayOfMonth.getUTCMonth() + 1);
		oLastDayOfMonth.setUTCDate(0);
		var iLastDay = oLastDayOfMonth.getUTCDate();
		var iDays = Math.floor(iItems * 1.5);
		if (iDays > iLastDay) {
			// to be limited on real month length by opening
			iDays = iLastDay;
		}
		oDatesRow.setDays(iDays);

		if (oDatesRow.getDomRef()) {
			// already rendered
			oDatesRow.$().css("display", "");
		} else {
			var oRm = sap.ui.getCore().createRenderManager();
			var $Container = this.$("content");
			oRm.renderControl(oDatesRow);
			oRm.flush($Container[0], false, true); // insert it
			oRm.destroy();
		}

		this._showOverlay();

		// set start date and focus date
		_setDateInDatesRow.call(this, oDate);

		if (this._iMode == 0) {
			// remove tabindex from item
			var oTimesRow = this.getAggregation("timesRow");

			jQuery(oTimesRow._oItemNavigation.getItemDomRefs()[oTimesRow._oItemNavigation.getFocusedIndex()]).attr("tabindex", "-1");
		}

		this._iMode = 1;

	}
function _showDayPicker ( ) { if ( this . _iMode == 3 ) { _hideYearPicker . call ( this , true ) ; } else if ( this . _iMode == 2 ) { _hideMonthPicker . call ( this , true ) ; } var oDate = this . _getFocusedDate ( ) ; var iItems = this . _getItems ( ) ; var oDatesRow = this . getAggregation ( "datesRow" ) ; var oDateRange = oDatesRow . getSelectedDates ( ) [ 0 ] ; oDateRange . setStartDate ( CalendarUtils . _createLocalDate ( oDate , true ) ) ; // set number of days - but max number of days of this month var oLastDayOfMonth = new UniversalDate ( oDate . getTime ( ) ) ; oLastDayOfMonth . setUTCDate ( 1 ) ; oLastDayOfMonth . setUTCMonth ( oLastDayOfMonth . getUTCMonth ( ) + 1 ) ; oLastDayOfMonth . setUTCDate ( 0 ) ; var iLastDay = oLastDayOfMonth . getUTCDate ( ) ; var iDays = Math . floor ( iItems * 1.5 ) ; if ( iDays > iLastDay ) { // to be limited on real month length by opening iDays = iLastDay ; } oDatesRow . setDays ( iDays ) ; if ( oDatesRow . getDomRef ( ) ) { // already rendered oDatesRow . $ ( ) . css ( "display" , "" ) ; } else { var oRm = sap . ui . getCore ( ) . createRenderManager ( ) ; var $Container = this . $ ( "content" ) ; oRm . renderControl ( oDatesRow ) ; oRm . flush ( $Container [ 0 ] , false , true ) ; // insert it oRm . destroy ( ) ; } this . _showOverlay ( ) ; // set start date and focus date _setDateInDatesRow . call ( this , oDate ) ; if ( this . _iMode == 0 ) { // remove tabindex from item var oTimesRow = this . getAggregation ( "timesRow" ) ; jQuery ( oTimesRow . _oItemNavigation . getItemDomRefs ( ) [ oTimesRow . _oItemNavigation . getFocusedIndex ( ) ] ) . attr ( "tabindex" , "-1" ) ; } this . _iMode = 1 ; }
Shows an embedded day Picker.
This function assumes there is a "datesRow" aggregation.
So callers must take care.
@return {void}
@private
Shows an embedded day Picker . This function assumes there is a datesRow aggregation . So callers must take care .