fragaria / angular-daterangepicker

Angular.js wrapper for dangrossman/bootstrap-daterangepicker
MIT License
519 stars 371 forks source link

Unable to pick time: timePicker: true is not working #170

Closed VikashPattnaik closed 5 years ago

VikashPattnaik commented 8 years ago

I am not able to show time picker using this directive. Was this feature missed intentionally?

corali89 commented 8 years ago

1+

vatsalpande commented 7 years ago

+1

orvillelim commented 7 years ago

+1

BaamAadmi commented 5 years ago

I assume it won't work if you are using autoApply: true ? It makes sense that autoApply must be set to false in order to achieve proper functioning of the timepiece.

In my project, I am dynamically applying timepicker: true if Data Type is Datetime and for the same I have to switch autapply: false.

this.dateOptions.timePicker =  (datatype === "DATETIME");
this.dateOptions.autoApply =  !(datatype === "DATETIME");

Cheers, Sudeep