Browse Source

docs: add MonthPicker disableDate demo

pull/6155/head
Benjy Cui 8 years ago
parent
commit
555dbb9b29
  1. 4
      components/date-picker/demo/disabled-date.md

4
components/date-picker/demo/disabled-date.md

@ -15,7 +15,7 @@ Disabled part of dates and time by `disabledDate` and `disabledTime` respectivel
````jsx
import { DatePicker } from 'antd';
const RangePicker = DatePicker.RangePicker;
const { MonthPicker, RangePicker } = DatePicker;
function range(start, end) {
const result = [];
@ -62,6 +62,8 @@ ReactDOM.render(
showTime
/>
<br />
<MonthPicker disabledDate={disabledDate} placeholder="Select month" />
<br />
<RangePicker
disabledDate={disabledDate}
disabledTime={disabledRangeTime}

Loading…
Cancel
Save