Topic: Datepicker input toogle with translations
Expected behavior I use a datepicker with input toggle and translations inside a modal, the datepicker must dissapear after clicking outside the datepicker
Actual behavior In a modal the datepicker doesnt dissapear after clicking outside the datepicker
Resources (screenshots, code snippets etc.) https://mdbootstrap.com/snippets/standard/robin_reichenbach/5919204
Kamila Pieńkowska staff answered 10 months ago
You have double init on the datepicker. You use data attribute to init component and you do it second time with JS constructor. Remove data-mdb-datepicker-init
and datepicker will work fine.
U2P pro premium priority commented 9 months ago
I also got trapped, could you indicate this in the documentation? Usually we start by creating a simple component and add the functionalities one by one until we reach the target.
Is there a place where we can find all the translatable keys? I found them for the datepicker but not the datetimepicker
Kamila Pieńkowska staff commented 9 months ago
In the API section there is info about available initiation methods.
Datetimepicker consists of datepicker and timepicker parts and you can translate them via settings option for datepicker
or timepicker
options.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 7.1.0
- Device: Mobile
- Browser: Chrome
- OS: Android
- Provided sample code: No
- Provided link: Yes