diff --git a/api-generator/components/calendar.js b/api-generator/components/calendar.js index ba79c41d14..993f8b5748 100644 --- a/api-generator/components/calendar.js +++ b/api-generator/components/calendar.js @@ -359,6 +359,12 @@ const CalendarProps = [ default: 'null', description: 'Function that gets a date information and returns the cell content in datepicker.' }, + { + name: 'decadeTempate', + type: 'function', + default: 'null', + description: 'Function that gets a navigator information and returns the decade selections in the panel.' + }, { name: 'monthNavigatorTemplate', type: 'function', @@ -369,13 +375,25 @@ const CalendarProps = [ name: 'yearNavigatorTemplate', type: 'function', default: 'null', - description: 'Function that gets a navigator information and returns the novigator in header.' + description: 'Function that gets a navigator information and returns the navigator in header.' }, { name: 'transitionOptions', type: 'object', default: 'null', description: 'The properties of CSSTransition can be customized, except for "nodeRef" and "in" properties.' + }, + { + name: 'formatDateTime', + type: 'function', + default: 'null', + description: 'Function for overriding default behavior that formats a Date to the string representation.' + }, + { + name: 'parseDateTime', + type: 'function', + default: 'null', + description: 'Function for overriding default behavior that parses text into the Date.' } ]; diff --git a/components/doc/calendar/index.js b/components/doc/calendar/index.js index ec24cdb91c..f057bcd664 100644 --- a/components/doc/calendar/index.js +++ b/components/doc/calendar/index.js @@ -1,9 +1,9 @@ -import React, { memo } from 'react'; import Link from 'next/link'; -import { TabView, TabPanel } from '../../lib/tabview/TabView'; -import { useLiveEditorTabs } from '../common/liveeditor'; +import React, { memo } from 'react'; +import { TabPanel, TabView } from '../../lib/tabview/TabView'; import { CodeHighlight } from '../common/codehighlight'; import { DevelopmentSection } from '../common/developmentsection'; +import { useLiveEditorTabs } from '../common/liveeditor'; const CalendarDoc = memo(() => { const sources = { @@ -1221,6 +1221,12 @@ const monthNavigatorTemplate = (options) => {