React-dates: Question: How to disable date

Created on 23 Jan 2018  Â·  4Comments  Â·  Source: airbnb/react-dates

hi, i want to disable selection date like airbnb

this my date
image

and i want to
image

image

I do not know the key word, so I explained through the picture.
I am very grateful if you help me. thank you

Most helpful comment

@majapw have you posted any detailed code for the same problem? Please post it as it would be of great help to the community if you haven't posted it already.

All 4 comments

Use isOutsideRange prop and pass it the function, let f = (day) => {// if has to be disabled return true, otherwise false}

I will post some more detailed code later today on how to make this happen
in later versions of react-dates. :)

On Tue, Jan 23, 2018, 2:27 AM lavokad notifications@github.com wrote:

Use isOutsideRange props and pass it the function, let f = (day) => {//
if has to be disabled return true, otherwise false}

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/airbnb/react-dates/issues/971#issuecomment-359746909,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABUdtT0An8En5spdPKW9gGriPCeMnFv4ks5tNbQFgaJpZM4RpU2A
.

@majapw have you posted any detailed code for the same problem? Please post it as it would be of great help to the community if you haven't posted it already.

Looking for a solution to this too.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mrseanbaines picture mrseanbaines  Â·  3Comments

thomasdtucker picture thomasdtucker  Â·  3Comments

cemremengu picture cemremengu  Â·  3Comments

Jesus-Gonzalez picture Jesus-Gonzalez  Â·  3Comments

AsasinCree picture AsasinCree  Â·  3Comments