-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need a month picker (feature request) #3126
Comments
@grosch There's already a UI for that in the |
IMO it is not necessary to extract it in a component, but @grosch is asking how to change the month in the date picker, which is possible upon clicking the month name in the area just above the weekdays. |
@StefanIvanov The UI is there, but currently you cannot have that at the only calendar UI, which you go directly to, and can react to user choice. |
If @grosch 's goal is to be able to select only a month without a date etc. I'd argue that a dropdown component with the 12 items, one for each month, would work just fine. The idea of a date picker is that you are able to pick all parts of a date i.e. DD, MM and YY but if you have a form where you provide the month in which your yearly car insurance expires, than you wouldn't need a picker. I am curious to know about the specific scenario @grosch is facing to make a proper recommendation and if it is on our end, we will know what specific feature we are required to meet that fits right in a scenario. |
@StefanIvanov This would be similar concept to the time picker component. With a time picker, you only expose a specific portion of a date object to be editable by an end user, namely the time portion. A month picker would only be for the month portion of a date. @grosch Would a drop down with months serve the purpose for you? |
@StefanIvanov The idea is that, for example, you've got an order/billing system, and you have to identify what month the order goes against, and so you're picking a year and a month, but you don't care about the day. Just having a list of month dropdowns isn't good because then you have to have a second input to type in a year. |
@kdinev Put a year picker at the top of that image you posted and that's exactly what I'm looking for! |
@grosch Like this? |
@kdinev No, something more like this, from ng2-date-picker: |
My screenshots are from this demo: https://stackblitz.com/angular/eymadmbgxko The stackblitz is from this sample in the docs: https://www.infragistics.com/products/ignite-ui-angular/angular/components/calendar.html#special-dates Click on the month name or year name and you get the views. My understanding is you just don't need the days view from the whole thing. |
I suppose it could work like that. If it defaulted to just the month view, and I could click the year to get the scroller, and then going back would be the month view, that could work. |
@grosch We will prioritize this for one of our upcoming sprint and we will keep you posted on the progress. I think it would be rather easy to separate those views from the calendar into a separate component. |
Any ETA on a delivery date? |
@grosch We will assign this to a sprint and will try to get it for |
@grosch we wills tart working on this in the current Sprint and will provide an ETA after the we do an internal evaluation of the time needed to complete the task. |
I am working on some initial designs and a draft of a specification, where they will be placed. |
Any update? |
@grosch This is in development already. It will be released with 7.2.0. |
Adding some initial draft of the calendar views specification to serve as a base for the month picker implementation. |
I still think you're missing the most common case: As a developer I want to be able to instantiate a year and month picker, as a single control, without having to have a year selector and then another control as a month selector. |
The development part is done and the PR is merged. We will be working on samples and docs in the following weeks. |
Description
Would be very useful if the calendar component let us pick a month instead just a specific day in the month. For example, this order counts against December. I don't care about a specific date in December, I just care about the month.
It would be fine if you just picked the 1st as far as the Date() object, but for the UI the person still just sees a month.
The text was updated successfully, but these errors were encountered: