ant-design/components/calendar/index.en-US.md
ddcat1115 0baef0627e docs: 调整组件导航结构 (#3758)
- Layout 更名为 Grid
2016-11-09 14:43:32 +08:00

1.3 KiB

category type cols title
Components Data Display 1 Calendar

When To Use container for displaying data in calendar form.

When To Use

When data is in the form of date, such as schedule, timetable, prices calendar, Lunar calendar. This component also supports Year/Month switch.

API

<Calendar
  dateCellRender={dateCellRender}
  monthCellRender={monthCellRender}
  onPanelChange={onPanelChange}
/>
Property Description Type Default
value set date moment current date
defaultValue set default date moment default date
mode can be set to month or year string month
fullscreen to set whether full-screen display boolean true
dateCellRender to set the way of renderer the date cell function(date: moment): ReactNode -
monthCellRender to set the way of renderer the month cell function(date: moment): ReactNode -
locale set locale Object defualt
onPanelChange the callback when panel change function(date: moment, mode: string) -