help(MatDatePicker): Ability to Conditionally Show/Hide mat-datepicker-actions #25122
Labels
area: material/datepicker
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
What are you trying to do?
When creating a mat-datepicker component we have the following example:
Within this datepicker's header, there's a mat-slide-toggle that updates the props$ state to T/F. However, when updated, the mat-datepicker-actions remain visible within the template...
Is there a way to ensure the actions can be shown/removed without having to close and repoen the datepicker popover?
What troubleshooting steps have you tried?
ChangeDetectorRef
.registerActions
andremoveActions
methods onMatDatepicker
.Reproduction
https://stackblitz.com/edit/components-issue-xiz8hd?file=src/app/example-component.ts
Environment
The text was updated successfully, but these errors were encountered: