Topic: Date picker events not included in documentation?

axela free asked 2 years ago


When I click on https://mdbootstrap.com/docs/b4/jquery/forms/date-picker/#events
No documentation found for events!


Marcin Luczak staff answered 2 years ago


Hi,

Thank you for pointing this out, we will check why this is not provided on the page. For now you can use events documentation from the previous version of the datepicker :

 $('.datepicker').datepicker({
  onStart: function() {
    console.log('Hello there :)')
  },
  onRender: function() {
    console.log('Whoa.. rendered anew')
  },
  onOpen: function() {
    console.log('Opened up')
  },
  onClose: function() {
    console.log('Closed now')
  },
  onStop: function() {
    console.log('See ya.')
  },
  onSet: function(context) {
    console.log('Just set stuff:', context)
  }
})

Keep coding, Marcin



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: MDB4 4.19.2
  • Device: PC
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes