Topic: Close date picker after selecting the date
Damian Gemza staff answered 7 years ago
this.showSelector = false; this.removeInlineStyle();
aionys pro commented 7 years ago
Hello Damian, When do you plan to release new version?Damian Gemza staff commented 7 years ago
Dear aionsys, ETA for next release is about 3 weeks. We want to release new version of MDB Angular with compatibility with Angular 6. This fix is available to download from our GitLab branch dev, so you can always update your project by using dev branch instead of master. Best Regards, Damianaionys pro commented 7 years ago
Thanks Damian for the help.Diego Alvarez answered 6 years ago
Good evening, how can I make the datepicker not open if not until I say, that by a button I can only open it, but when I click on the entry field it will never open
Arkadiusz Idzikowski staff answered 6 years ago
You need to add [disabled]="true" input to your mdb-date-picker component and use 'openBtnClicked' method to open date picker programatically. We explained how to use component methods in our documentation (change tab to API at the top of the page):
Diego Alvarez commented 6 years ago
Thanks, but it is also required that the entry field is enabled, and additional that can be opened from a button the selector (this I already did), but that when doing the focus event, there will be no selector but if I can enter the entry field
Diego Alvarez commented 6 years ago
This event (inputFocusBlur) only works for the focusout and does not work for the focus, how can I get it to the focus event
Arkadiusz Idzikowski staff commented 6 years ago
I'm afraid there is no way to disable only click on the input field, without disabling the focus.
Diego Alvarez commented 6 years ago
The event onFocus no working, why?, only working the event onFocusOut, the event onFocus never triggers, any solution?
Arkadiusz Idzikowski staff commented 6 years ago
We will take a closer look at the problems with focus.
Diego Alvarez commented 6 years ago
thank you very much, I will be attentive
Gayatri Dube answered 5 years ago
how to close datepicker after selecting date ?
Arkadiusz Idzikowski staff commented 5 years ago
You need to set 'closeAfterSelect' option to true. You can find guide for options usage here:
https://mdbootstrap.com/docs/angular/forms/date-picker/#options
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No