question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

set all dates "disabled" except those marked dates

See original GitHub issue

Use-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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
tautvilascommented, Oct 26, 2017

Solved in 1.8.1 with disabledByDefault prop

0reactions
kcfglcommented, Jun 20, 2017
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found