Mds92 / MD.BootstrapPersianDateTimePicker

Bootstrap Persian/Gregorian Date Time Picker
347 stars 105 forks source link

how enable modal mode? #270

Closed rezaamya closed 1 year ago

rezaamya commented 1 year ago

seems it can't be enabled by setting option on creating new datetime picker. I have used following snippet of code, but it will hang and stop working without any response or any error on client and console.

const dtp1Instance = new mds.MdsPersianDateTimePicker(document.getElementById('dtp1'), {
  targetTextSelector: '[data-name="dtp1-text"]',
  targetDateSelector: '[data-name="dtp1-date"]',
  modalMode: true
});
Mds92 commented 1 year ago

Please see the readme file and demo link