Search code examples
javascriptreactjsadmin-on-rest

does Admin-on-rest provides date-range-picker


I want to have a filter where I can filter from date to a particular date ie date range picker. does Admin on rest provides anything like that? any help will be appreciated.


Solution

  • You have several options for the front-end/react-admin part of your problem:

    Once you've chosen which of these options is optimal for your case, you have to manipulate your data on the back-end. I.e. you can create a filter in which you'll use two date pickers to define your start and end date, then pass this data to your back-end, where, with the use of filtering you can return data according to these dates.

    Also please study react-admin's documentation on custom filtering and be careful not to mix up Filter with filters.