3 months ago

Datepicker not accepting config options in laravel

Posted 3 months ago by MattB

So, I have the datepicker references by cdn in the header of my blade thusly:

<link href="" rel="stylesheet"/>
    <script src=""></script>

and in my app.js file, I have

  format: "mm-yyyy",
  startView: "month", 
  minViewMode: "months",
  autoclose: true  

but when I use the following, it doesn't autoclose and it doesn't show just the month and year as it should. What have I potentially done wrong?

<div class="input-group date" data-provide="datepicker" id="datepicker">
                <input type="text" class="form-control">
                <div class="input-group-addon">
                    <span class="glyphicon glyphicon-th"></span>

Please sign in or create an account to participate in this conversation.