I Need a Month Picker on my app so here i am using Owl-Date-picker, when the use selected the month the date picker have to close that as been handled by the monthSelected Event But My issue here in "monthSelected Event Handler Calling when select the month". I am here using angular 8.Please help me,Thanks
Here is my Code..
(monthSelected)="chosenMonthHandler($event, dtMonth)" #dtMonth="owlDateTime">
chosenMonthHandler( normalizedMonth: Moment, datepicker: OwlDateTimeComponent ) {
const ctrlValue = this.date.value;
ctrlValue.month(normalizedMonth.month());
this.date.setValue(ctrlValue);
datepicker.close();
}
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bharath RPosted Oct 31, 2019, 6:31 AM
Gowtham RamarPosted Oct 14, 2019, 3:45 AM