Topic: several datepicker on one site

Joachim Kumpa priority asked 1 year ago


Expected behavior i have several datepicker on my site and it works fine ( ... )

I want to use the following options for each datepicker: - Close without confirmation - Custom header content Despite various attempts at a solution it does not work, Please help, thanks

Actual behavior By the way : If I look at some examples in the sandbox and download them, I see that mdb-version 3.x is used ? also some examples in the sandbox don't work ( JS-code is missing ) Resources (screenshots, code snippets etc.)


Kamila Pieńkowska staff answered 1 year ago


You need to add more JS code. You can init as many datepickers as you want and pass any option, different for every datepicker if you need.

https://mdbootstrap.com/snippets/standard/kpienkowska/5377739


Joachim Kumpa priority commented 1 year ago

Thanks for the solution, I'll try to integrate an internationalization


Joachim Kumpa priority answered 1 year ago


I've tried a few more things, but it doesn't work. Your solution is good for ONE datepicker.

But i have 4 datepicker on the site, - each datepicker need "Internationalization" - each datepicker need "Custom header content"


Joachim Kumpa priority answered 1 year ago


thanks... but i need this solution with support for internationalization AND i have 4 Datepicker on one site.


Kamila Pieńkowska staff answered 1 year ago


Here is a snippet demonstrating how to customize the header: https://mdbootstrap.com/snippets/standard/kpienkowska/5370546#js-tab-view


Joachim Kumpa priority commented 1 year ago

thanks... but i need this solution with support for internationalization AND i have 4 Datepicker on one site.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.4.0
  • Device: computer
  • Browser: Firefox (newest)
  • OS: win11
  • Provided sample code: No
  • Provided link: No