MCPcopy Index your code
hub / github.com/react-dates/react-dates / render

Method render

src/components/DayPicker.jsx:1014–1254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1012 }
1013
1014 render() {
1015 const {
1016 calendarMonthWidth,
1017 currentMonth,
1018 monthTransition,
1019 translationValue,
1020 scrollableMonthMultiple,
1021 focusedDate,
1022 showKeyboardShortcuts,
1023 isTouchDevice: isTouch,
1024 hasSetHeight,
1025 calendarInfoWidth,
1026 monthTitleHeight,
1027 } = this.state;
1028
1029 const {
1030 enableOutsideDays,
1031 numberOfMonths,
1032 orientation,
1033 modifiers,
1034 withPortal,
1035 onDayClick,
1036 onDayMouseEnter,
1037 onDayMouseLeave,
1038 firstDayOfWeek,
1039 renderMonthText,
1040 renderCalendarDay,
1041 renderDayContents,
1042 renderCalendarInfo,
1043 renderMonthElement,
1044 renderKeyboardShortcutsButton,
1045 renderKeyboardShortcutsPanel,
1046 calendarInfoPosition,
1047 hideKeyboardShortcutsPanel,
1048 onOutsideClick,
1049 monthFormat,
1050 daySize,
1051 isFocused,
1052 isRTL,
1053 styles,
1054 theme,
1055 phrases,
1056 verticalHeight,
1057 dayAriaLabelFormat,
1058 noBorder,
1059 transitionDuration,
1060 verticalBorderSpacing,
1061 horizontalMonthPadding,
1062 navPosition,
1063 } = this.props;
1064
1065 const { reactDates: { spacing: { dayPickerHorizontalPadding } } } = theme;
1066
1067 const isHorizontal = this.isHorizontal();
1068
1069 const numOfWeekHeaders = this.isVertical() ? 1 : numberOfMonths;
1070 const weekHeaders = [];
1071 for (let i = 0; i < numOfWeekHeaders; i += 1) {

Callers

nothing calls this directly

Calls 5

isHorizontalMethod · 0.95
isVerticalMethod · 0.95
renderWeekHeaderMethod · 0.95
getFirstVisibleIndexMethod · 0.95
renderNavigationMethod · 0.95

Tested by

no test coverage detected