Topic: MDB date picker - overriding classes not working

lemons free asked 5 years ago


Expected behavior![This is what I think it should look like][1]additionally uploaded image

Actual behavior![defined classes are not used][2]addinally uploaded image

Snippet: https://mdbootstrap.com/snippets/jquery/lhock/969193


MDBootstrap staff answered 5 years ago


Hi lemons,

I have and update in your case. That was just a typo problem. This plugin uses the word "klass" instead of class to define custom classes. We are sorry that there was this mistake in our documentation.

klass:{
//customized classes.
}

I forked your snippet to show you how you can customize your date picker.

Best Regards, Piotr


lemons free answered 5 years ago


Thanks Piotr,

edited the snippet as suggested (onStart and onSet methods).

I somehow can't get it work with the onRender method, as it will cut of the header. But at least it works.

Kind regards, Leon


MDBootstrap staff answered 5 years ago


Hi lemons,

You are right, this customization does nothing. We will further investigate why it works this way and it will be fixed in one of the future releases. For now, please try to work with picker elements on the event listener when the picker is created.

If you need additional help I am here for you.

Best Regards, Piotr



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: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: can\'t be selected, but its 4.8.1 and 4.8.5
  • Device: PC
  • Browser: Firefox
  • OS: Win
  • Provided sample code: No
  • Provided link: Yes