2
votes

I am using Angular 2 Material Date-picker in my project. How can I show inline date-picker ?

Reference - https://material.angular.io/components/component/datepicker

Please let me know is it can be done using angular material (md-datepicker).

1
please update the code you have tried in the questionuser93
What do you mean by "inline"?Edric
It will be open by default.Nilesh Mistry
I too require this, Inline he meant is to show a standalone datepicker rather than a popupcrystalthinker
@AbhiPavithran other option is to create custom datepicker by using momentjs.Nilesh Mistry

1 Answers

3
votes

You can use the md-calendar component this way for this instead of the md-datepicker one:

<mat-calendar (selectedChange)="onCalendarSelectedChange($event)">
</mat-calendar>