diosney / angular-bootstrap-datetimepicker-directive

A wrapper directive around the bootstrap-datetimepicker component.
MIT License
69 stars 50 forks source link

Input Group Addon Support #31

Open nkamenar opened 8 years ago

nkamenar commented 8 years ago

Is there a way to make this work with an input group addon icon? I have a datepicker input like shown below and if I click the input box it opens as expected but if I click the calendar addon button on the right nothing happens but I would expect it to open the date picker.

3

Here is my code:

<div class="input-group date" id="DueDatePicker">
    <input type="text" class="form-control"
        datetimepicker
        datetimepicker-options="{
            format: 'M/D/YY h:mm A',
            showClear: true,
            showTodayButton: true
        }"
    ng-model="currentItem.DueDate" />
    <span class="input-group-addon">
        <span class="glyphicon glyphicon-calendar"></span>
    </span>
</div>
atais commented 7 years ago

try using my continuation https://github.com/atais/angular-eonasdan-datetimepicker