jquery-date-range-picker icon indicating copy to clipboard operation
jquery-date-range-picker copied to clipboard

Feature Request - Previous Year and Next Year toggles

Open jpeacock76179 opened this issue 7 years ago • 4 comments

Nice plugin! Would be nice to have similar to the Prev Month and Next Month toggles.

Thanks

jpeacock76179 avatar Apr 06 '17 05:04 jpeacock76179

This is already implemented. In the config, add:

{
	showShortcuts: true,
	shortcuts :
	{
		'next': ['year']
	}
}

See "Use future date shortcuts:" at the documentation.

jonathanarbely avatar May 22 '17 11:05 jonathanarbely

I think he meant not selection, but navigation. If I have to set range like '2012-06-05' - '2012-06-08' I have to navigate monthly ~60 times on each tab untill I reach 'June 2012'. So how about a separate month and year navigation? In this case I could change year and month separately.

Iworb avatar Jun 06 '17 07:06 Iworb

Seems like a useful feature indeed. When using the default presentation, something like:

  • <<: previous year
  • <: previous month
  • >: next month
  • >>: next year

A Pull Request would be much appreciated. I really lack the time to work on such new features and merely monitor this project a bit, since @longbill also has very little time...

holtkamp avatar Jun 06 '17 09:06 holtkamp

@holtkamp https://github.com/longbill/jquery-date-range-picker/pull/367 what about that?)

snake-345 avatar Jul 28 '17 10:07 snake-345