V
V
vaskadogana2017-08-10 17:18:26
JavaScript
vaskadogana, 2017-08-10 17:18:26

How to disable dates in rc-calendar?

there is a library https://github.com/react-component/calendar
there is api rc-calendar/lib/RangeCalendar props
there is a description of
disabledDate Function(current:GregorianCalendar):Boolean null whether to disable select of current date
what the author wanted to say, can anyone come across?
this is Function(current:GregorianCalendar):Booleanwhat it should be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
davidnum95, 2017-08-10
@davidnum95

I don’t see such a line there, but there is this disabledDate Function(current: moment): Boolean. This means that you need to pass a function to this prop that takes a date (moment object) and returns true / false.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question