Datepicker sample page and plugin outdated
See original GitHub issueHello Abdullah!
I didn’t find any sample page using Datepicker plugin, just samples using Daterangepicker.
After that I found that there is a Datepicker plugin inside AdminLTE plugins folder, and so I tried to use that. It worked as expected, but with some weird style, and I did add the css and js references. So I went to their git repo, downloaded the current version, updated the plugin datepicker folder, and the weird style went away. Here is the sample of the up-to-date version of datepicker:
That being said, I have two suggestions:
1: In the advanced form sample page, add some Datepicker sample, not only daterangepicker. 2: Update the datepicker plugin folder to the lastest version (bootstrap-datepicker.js and bootstrap-datepicker3.css is enough).
Here is my code sample:
<div class="form-group">
<label class="col-md-2 control-label" for="Date">Date</label>
<div class="col-md-10">
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
<input type="text" class="form-control" id="Date"/>
</div>
</div>
</div>
$('#Date').datepicker({
autoclose: true,
todayHighlight: true
});
Thanks! Rafael Pacheco.
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
This did the trick for me… $(function(){ //Date range picker with time picker $(‘#reservationtime’).daterangepicker({ timePicker: false, //<==MAKE THE CHANGE HERE singleDatePicker: true, //<==MAKE THE CHANGE HERE }); })
Thanks Rafael!
I do not like the idea to call each datepicker alone. Isnt there an easy way to address all datepickers/more datepickers on a page with one command?