Skip to content

Some suggestions for features #7

@Angelk90

Description

@Angelk90

Hi @aadilhasan ,

It would be possible to implement the following features:

  • When selectTime is true, give the possibility to decide for the AM-PM format or the 24-hour format.
  • To be able to decide the formatting of the date, ex: dd/mm/yyyy or dd-mm-yyyy h:mm.
  • Being able to decide the separator between the two dat, ex ~ or -, or other.
  • Make sure that dates prior to today's date are not selectable, if required.
  • Make sure that the months preceding the current month are not possible to scroll, if required.
  • Make sure you can customize the colors of the calendar, for example if you want to change the background color of the calendar to have it in dark mode, or want it dark blue, or the color of the text.

Bug, looking at the following example from the first calendar which is of type disableRange:
If the Today button is selected, a range is set, but it should not be so, then if I select a different date than today, setting the time, strange things happen.

The last date I selected with the time previously set from the current date is set, from which the current date that I had previously selected with the last time I set was set.

Link: https://codesandbox.io/s/react-range-picker-8bdzy

Then take a look at:

  • src/components/date-grid/index.js line 42 do not make a return false; but only false;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions