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
How to use datepicker options for material datepicker #2127
Comments
@aitboudad I have created my custom type for date picker and used it in JSON, it is working fine. I can get the date-change event in JSON and invoke the function for it (currently, the schema is in TS file but have to move it to JSON file). now the issues are:
|
use formState |
added dateInput and dateChange option in v5.6.0 release. |
@aitboudad I am using mat-datepicker with custom header. Where I want to use (click) method events on next and previous button click. So that I want to get which is current month in the view when I click next and previous navigation. So how can I get that method response in json as a custom method in templateOptions:{}. |
How to use date picker option for material date picker
Hello,
I want to use the following material date picker options:
Following is angular material date picker example that I want to generate using formly:
I want to use highlighted options:
<input matInput [(ngModel)]="configuration.parameters.fromDate"
[max]="getMaxDate(configuration.parameters.toDate,today)"
[matDatepicker]="fromDate" placeholder="from Date"
(dateChange)="changeEvent('changeFromDate')" disabled>
<mat-datepicker-toggle matSuffix [for]="fromDate">
<mat-datepicker #fromDate disabled="false">
is there any way to use these parameters with formly?
The text was updated successfully, but these errors were encountered: