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.

Custom Date range component

See original GitHub issue

Do you want to request a feature or report a bug? Feature

Feature: What is your use case for such a feature? I have records representing events, each with a startDate and endDate (as Unix timestamps). I’d like to be able to filter them through a range (ie. “All events between October 1st and November 13th”).

I don’t see any of the default components that could help me achieve that. Before jumping into building my own, I wanted to discuss it and see if it was something you already pondered.

Feature: What is your proposed API entry? The new option to add? What is the behavior? I guess I could somehow hack the price range component to make it work with timestamps, but this will result in a poor UI for this specific use-case. I think a great UI would require custom datepickers. Datepickers are hard and we don’t want to incorporate them into our library.

On the other hand, creating a component that would work with any Datepicker out there seems like a very bad idea and would lead to configuration hell. Maybe just adding an example or an FAQ entry on how to do that would be enough?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
pixelasticcommented, Oct 12, 2017

I started working on the component, but only on the UI part so far (using vue-flatpickr). Haven’t worked on integrating with Algolia yet.

My events only have a start and end date, no recurring, only one date.

1reaction
Haroenvcommented, Nov 7, 2018

For v2: here’s a component which mostly solves the issue, but still some upstream mistakes I think. I’m going to stop working on this for now, but will continue working on it on a later time if the need shows: https://codesandbox.io/s/4qkqvxo334

Read more comments on GitHub >

github_iconTop Results From Across the Web

Date Range Picker — JavaScript Date & Time Picker Library
A JavaScript component for choosing date ranges, dates and times. ... You can customize Date Range Picker with options, and get notified when...
Read more >
Angular Date Range Picker with Custom Range Presets
Angular 10 introduced a new Date Range Picker in its Material component library, but it lacks custom range selections.
Read more >
React Date Range Picker component - MUI X
The date range picker let the user select a range of dates. ... This will enable building custom popover/modal containers. ... Custom input...
Read more >
DateRangePicker - React Suite
Used to quickly select a date range. ... caretAs, ElementType, Custom component for the caret icon. character, string (' ~ '), The character...
Read more >
Angular Date Range Picker Component | Ignite UI for Angular
The Angular Date Range Picker component allows you to choose a date range by defining its start and end date. You can select...
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