-
Notifications
You must be signed in to change notification settings - Fork 109
Customize calendar header using [calendarHeaderComponent] #35
Comments
My bad. I'll try to fix now or tommorow |
try 6.1.1. if it's not working, please create a demo https://stackblitz.com/edit/angular-4cfnyl |
Sorry, but it's still not working. Now, the entire datepicker box that opens is empty. I created a demo - basically an exact copy of material design's customized header. Thanks for your help! It's much appreciated. |
example from angular material not working too :) here is working example: |
Thank you! |
Is there a way to EDIT the calendarHeader component, rather than REPLACE it entirely? [Or, alternatively, is it possible to reuse the date selection (dropdown and fwd/bck navigation for months) in my replacement header component? (I don't want to have to rewrite that)] |
No, but you can copy-paste source code of original header |
There's no way of extending SatCalendarHeader or MatCalendarHeader? |
Extending components is not thing that angular can do now (if I remember correctly). |
Update: I did extend SatCalendarHeader on my customHeaderComponent and it works like a charm. |
I have a similar Problem, I am trying to implement the calenderHeaderComponent from an existing mat datepicker into a sat datepicker. but the pop-up showing up blank white. the error on console is : ERROR Error: StaticInjectorError(AppModule)[ExampleHeader -> MatCalendar]: any Advice! Thanx 👍 |
I am trying to customize the Sat Datepicker calendar header using my own component, but it is ignoring the Input.
This does not work:
<sat-datepicker #picker [calendarHeaderComponent]="exampleHeaderComponent" [rangeMode]="true"></sat-datepicker>
But it does work with Mat Datepicker:
<mat-datepicker #picker [calendarHeaderComponent]="exampleHeaderComponent"></mat-datepicker>
What am I doing wrong?
The text was updated successfully, but these errors were encountered: