set all dates "disabled" except those marked dates
See original GitHub issueUse-case
Possible to set all dates “disabled” except those marked dates configured?
Something similar to https://github.com/wix/react-native-calendars#date-marking, the differences are:
- all dates are disabled (will not response to user click)
- except those marked dates configured will be enabled.
<Calendar
// Collection of dates that have to be marked. Default = {}
markedDates={{
'2012-03-16': {marked: true},
'2012-05-03': {marked: true},
'2012-06-28': {disabled: true}
}}
/>
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Disable specific days in material ui calendar in React
You can add condition according to your need in order to disable date. import React from 'react'; import DatePicker from ...
Read more >Calendar Disabled values Example - Mobiscroll
JQuery calendar example for setting invalid days, disabling dates, weekends, holidays, specific and recurring dates.
Read more >react-native-calendars - npm
state - disabled if the day should be disabled (this is decided by base calendar component). marking - markedDates value for this day....
Read more >jQuery UI Datepicker: How to Enable Dates Before ... - YouTube
These options are really useful when you have to enable or disable consecutive dates in jQuery UI Datepicker. You can set the value...
Read more >Datepicker - Angular Material
In addition to enforcing validation on the input, these properties will disable all dates on the calendar popup before or after the respective...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Solved in 1.8.1 with disabledByDefault prop
@tautvilas Here is a first stab at a PR https://github.com/wix/react-native-calendars/pull/67