Open jasonsrogers opened 11 months ago
Hi all
I'm looking for a way to use react-date-range in display only mode:
react-date-range
The goal is to be able to show ranges on the calendar without allowing changes to it. (Some users have sets the ranges, some users can only view them)
So far I've managed to:
<DateRange ranges={[state.selection1, state.selection2, state.selection3]} editableDateInputs={false} showPreview={false} onChange={()=>{}} rangeColors={["#FFB800", "#B8FF00", "#B800FF"]} />
Then I can do some css hacking:
.rdrDateDisplayWrapper { display: none; } // etc
Is there a better way ?
Hi all
I'm looking for a way to use
react-date-range
in display only mode:The goal is to be able to show ranges on the calendar without allowing changes to it. (Some users have sets the ranges, some users can only view them)
So far I've managed to:
Then I can do some css hacking:
Is there a better way ?