-
Notifications
You must be signed in to change notification settings - Fork 84
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
Support for actions #163
Comments
did you look at the sample application? I think the "Date" input is what you're looking for, no? <mat-form-field>
<mat-placeholder>Date</mat-placeholder>
<mat-datetimepicker-toggle
[for]="datePicker"
matSuffix
></mat-datetimepicker-toggle>
<mat-datetimepicker
#datePicker
openOnFocus="true"
type="date"
></mat-datetimepicker>
<input
[matDatetimepicker]="datePicker"
formControlName="date"
matInput
required
/>
<mat-error *ngIf="group.get('date').errors?.required">required</mat-error>
</mat-form-field> |
@bbortt I am looking a way to add actions to the popup so that user updates any one of the date parts and chooses to close the popup. I want something like below which should work with datetime:
|
I see, its about the actions, not the date picker. let me see what I can do.. but will probably take a while. |
It's been a year and I finally found some time to dig into this. the change goes a bit deeper as first suspected. I've the buttons available, but there is no "intermediate value" from the |
as requested in issue #163. the datetime-picker does still close itself if you reach "the end of the selection". e.g. when selecting the minutes in the minutes-view. this is in contrary to the original material date picker, but in my personal opinion more useful. I think it should be possible to customize this behaviour too (via property).
add an action button sample to the application. also document its usage in `README.md`.
Is there any support for actions?
I was looking to add actions to date picker so that user can just change the date instead of selecting hour/minutes.
Does this control support mat-datepikcer-actions? (In below link please look for picker with actions)
Ref: https://material.angular.io/components/datepicker/examples
I see this PR is closed and I was looking for exactly this feature - #13
The text was updated successfully, but these errors were encountered: