Material-ui-pickers: Swipe between months

Created on 28 Feb 2019  路  3Comments  路  Source: mui-org/material-ui-pickers

Swipe happy

HI folks, thanks for a fantastic library, I love the time picker.

I was wondering if there was any plan (so far I can't find anything in my searches) to include a swipe option between months for the DatePicker? I'm building a calendar app in React, on desktop views it makes sense to have the "next month" and "previous month" arrows for mouse clicks but on mobile swipe for "next month" and "previous month" would be awesome.

I've looked at React Swipeable Views for a possible solution but I'm still a pretty junior javascript developer, and I'm not sure where to start with the DatePicker.js file!

| Tech | Version |
| ------------- |-------------:|
| material-ui-pickers | 2.2.0 |
| @material-ui/core | 3.9.2 |
| react | 16.4.1 |

Most helpful comment

I have users requesting this feature too. Could this be done by adding an optional prop to pass down the SwipableView component (or a custom implementation) and thus not adding a new lib to the project ?

All 3 comments

I am actually aware of integration because of additional 5.7kb gzipped

And not really popularity of the swiping functionality, mostly will just use arrows.

I have users requesting this feature too. Could this be done by adding an optional prop to pass down the SwipableView component (or a custom implementation) and thus not adding a new lib to the project ?

I'd love to see this functionality as well.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

StevenRasmussen picture StevenRasmussen  路  3Comments

nicky-dev picture nicky-dev  路  3Comments

danmce picture danmce  路  3Comments

brett-patterson picture brett-patterson  路  3Comments

dandv picture dandv  路  3Comments