bootstrap datepicker orientation syntax for placement of the datepicker -
does know syntax setting orientation property orientation property bootstrap datepicker?
here jquery:
$(function() { $("#dp3").datepicker({ orientation: 'top right' }); });
datepicker works fine can't change orientation all, appreciated.
html looks like:
<div class="control-group"> <label class="control-label" for="birthday">birthday</label> <div class="controls"> <div class="input-append date" id="dp3" data-date="12-02-2012" data-date-format="dd-mm-yyyy"> <input class="date-input-large" size="16" type="text" value="12-02-2012"> <span class="add-on"><i class="icon-calendar"></i></span> </div> </div> <!-- /controls --> </div>
bootstrap datapicker plugin support left orientation. can check original code here. however, has smartness keep in view.
all can use is:
$("#dp3").datepicker({ orientation: 'left' });
orientation right
, top
not supported.
Comments
Post a Comment