Topic: trigger date picker on button click
herve pro asked 6 years ago
Damian Gemza staff answered 5 years ago
Dear 4ntibala,
With the next release of MDB Angular there will be added features like:
1) events for clear, close, today buttons,
2) option to have a minimalistic version
Best Regards,
Damian
4ntibala pro answered 6 years ago
thanks - this is really good to hear!
btw, as you are on it right now.. may i suggest features like:
- close picker after date was clicked (selected) OR
- events for Clear, Close & Today buttons
- show/hide picker functions
- option to have a minimalistic version, like so example
Arkadiusz Idzikowski staff commented 6 years ago
Closing date picker after click is already possible. You need to add 'clearAfterSelect: true' property to the date picker options object. I added the other features to our nice-to-have list, thank you for the suggestions.
Arkadiusz Idzikowski staff answered 6 years ago
Dear 4ntibala,
It will be fixed in new version (this week), thank you for letting us know about this problem.
Regards,
Arek
4ntibala pro answered 6 years ago
this does not seem to work anymore... since i updated to version 7.1.0 ?! will u provide an alternative to trigger the date selection on button click?
Arkadiusz Idzikowski staff answered 6 years ago
herve pro answered 6 years ago
Arkadiusz Idzikowski staff answered 6 years ago
@ViewChild('date-picker') datePicker: MDBDatePickerComponent;
this.datePicker.openBtnClicked();
Arkadiusz Idzikowski staff answered 6 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 6.2.3
- Device: pc
- Browser: chrome
- OS: windows 7 64bits
- Provided sample code: No
- Provided link: No