Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Datepicker - Tweak monthpicker to allow custom # months per row #5515

Closed
Mrman opened this issue Feb 20, 2016 · 1 comment
Closed

Datepicker - Tweak monthpicker to allow custom # months per row #5515

Mrman opened this issue Feb 20, 2016 · 1 comment

Comments

@Mrman
Copy link
Contributor

Mrman commented Feb 20, 2016

This is a feature request to allow more flexibility in the monthpicker. Currently its set to always be 3x4. In my custom template I'd like to have this as 4x3. The monthpicker is currently hardcoded to split by 3:

scope.rows = this.split(months, 3);

This is similar to this request for yearpicker: #4970 #3348 but different in that we can only have 12 months so I propose just providing a monthsPerRow option which defaults to the current 3 if not provided.

Happy to submit a PR for this if you are happy to take this in.

@wesleycho
Copy link
Contributor

This sounds reasonable, similar to how the yearpicker works - feel free to file a PR. Be aware that current master has some major changes in the datepicker config definition (deprecating most attribute bindings).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants