t-datepicker icon indicating copy to clipboard operation
t-datepicker copied to clipboard

Method for add some "dateDisabled" after init

Open tomredhot opened this issue 6 years ago • 6 comments

tomredhot avatar Dec 07 '18 02:12 tomredhot

Oops, I sent without a message. First of all, thanks for this plugin. I love it. I think a method for adding events and closed days after initialization can be useful. For example, in my project I need to make some days disabled depending on some other options. Something like : $('.t-datepicker').tDatePicker('addDateDisabled', '2018-07-17'); $('.t-datepicker').tDatePicker('removeDateDisabled', '2018-07-17'); Thanks again for your work.

tomredhot avatar Dec 07 '18 02:12 tomredhot

Hi @tomredhot , i have one option, can you try it. link document dateDisabled

$(document).ready(function(){
  $('.t-datepicker').tDatePicker({
    dateDisabled: ['2018-12-21']
  })
  $('.t-datepicker').tDatePicker({
    dateDisabled: []
  })
});

i hope that help you.

crazychicken avatar Dec 09 '18 13:12 crazychicken

dateDisabled is not working please help ....

hashaamahmad avatar Feb 14 '19 13:02 hashaamahmad

dateDisabled work correctly with Windows browser (chrome) but in Android browser not work.

Have you any ideas to resolve?

WindowsMoneroMiner avatar Apr 04 '19 12:04 WindowsMoneroMiner

Ps. your DEMO online have the same problem,work with chrome and not work with android browser. (only dateDisabled function)

WindowsMoneroMiner avatar Apr 04 '19 12:04 WindowsMoneroMiner

dateDisabled work correctly with Windows browser (chrome) but in Android browser not work.

Have you any ideas to resolve?

Ps. your DEMO online have the same problem,work with chrome and not work with android browser. (only dateDisabled function)

Still relevant

ShredderIIit avatar Oct 15 '21 13:10 ShredderIIit