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.

support allowDisabledDaysRange flag

See original GitHub issue

Hi , Thanks Kia to this great work.

Some times we may need to select disabled days on a range. for example : If we want to get pool ticket for a range, and odd days of week are for female we should allow male user to select a range of dates that only contain select-able days.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
sayjeyhicommented, Sep 18, 2019

@Kiarash-Z actually yeah, it is some special necessity of our app ❤️ @thebrodmann thanks to good example 👍 , but still need that flag to enable period choose .

thanks , it is handled in my fork and problem solved.

0reactions
the-dr-lazycommented, Sep 18, 2019

but my problem was some kind of multi days selection and allowing user to choose a range

If you wanna the appearance of range selection, the value should be a range. So it’s on your shoulder to convert a range to multiple days with filtering disabled days.

The following example is only for demonstration purpose so it just gives you the idea:

const [range, setRange] = useState({ from: undefined, to: undefined })
const disabledDays = [{ day: 1 }, { day: 2 }, { day: 3 }]
const totalDays = getAllDaysFromRange(range, disabledDays) // Your converted data

<Calendar value={range} onChange={setRange} disabledDays={disabledDays} />
Read more comments on GitHub >

github_iconTop Results From Across the Web

Public Display or Depiction of Flags in the Department of ...
Supporting our people requires mutual respect, responsibility, and accountability. Flags are powerful symbols, particularly in the military ...
Read more >
Support Flags | 100% Made in USA
Show your support with our 100% Made in USA Support Flags! We offer a wide variety of Military Flags including Army, Navy, Air...
Read more >
SRVS Support & Respect Flag – Loyalty Never Fades
Show your support and respect for those who serve with a Support & Respect Flag. Durable Polyester construction with bright colors to make...
Read more >
Official Flags of the Department of Homeland Security
(U.S.) flag, the official flag of the Department of Homeland Security (DHS) and the ... Director of the United States Secret Service.
Read more >
Capitol Flag Program
Requests for Capitol flags rapidly outgrew the supply; hence, the Architect of the Capitol (AOC) instituted a program of flying smaller flags that...
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