ankurk91 / vue-bootstrap-datetimepicker

Vue.js component for eonasdan bootstrap datetimepicker
MIT License
223 stars 66 forks source link

Feature suggestion - glyphicon #27

Closed GotaloveCode closed 6 years ago

GotaloveCode commented 6 years ago

I'm submitting a Feature request
Is it possible to have the datetimepicker glyphicon added to a datepicker with the on change method added.

ankurk91 commented 6 years ago

Can you elaborate more about where you want to add font icon?

GotaloveCode commented 6 years ago

I mean like how its done in bootstrap with the usual datetimepicker like below:

<div class="container">
    <div class="row">
        <div class='col-sm-6'>
            <div class="form-group">
                <div class='input-group date' id='datetimepicker1'>
                    <input type='text' class="form-control" />
                    <span class="input-group-addon">
                        <span class="glyphicon glyphicon-calendar"></span>
                    </span>
                </div>
            </div>
        </div>
        <script type="text/javascript">
            $(function () {
                $('#datetimepicker1').datetimepicker();
            });
        </script>
    </div>
</div>
ankurk91 commented 6 years ago

Something like this https://github.com/ankurk91/vue-bootstrap-datetimepicker/blob/4eee1607c10d275abb43e7884aa31033de3ebeb5/examples/App.vue#L41

GotaloveCode commented 6 years ago

Thanks for the quick response.Highly appreciated.Will attempt to replicate this and see if it behaves as expected.