Closed edmedo closed 8 years ago
Currently setting the datepicker-options is not supported. You have to specify each property individually.
e-showWeeks="false"
e-startingDay="1"
e-minDate="today"
Thanks @ckosloski, I did attempt that method but it also doesn't seem to work: https://jsfiddle.net/edgiles/7ap9xxce/1/
That is because the latest build doesn't have my changes I did to fix this issue (adding showWeeks, min/max day support). @eugef Can you do a build please?
Ah, ok good stuff, I will await the new build then. Thanks for your help.
I am getting the following error when trying to use datepicker inside form/table. Also when i set e-ng-required= inside element it doesn't apply required to datepicker input element it applies that to a div. Can you please let me know when will the new build available for download? Hopefully that will fix error that i am getting. Error Message: angular.js:13642 Error: [$compile:ctreq] http://errors.angularjs.org/1.5.6/$compile/ctreq?p0=ngModel&p1=uibDatepicker at Error (native) at http://localhost:53928/bower_components/angular/angular.min.js:6:412 at ib (http://localhost:53928/bower_components/angular/angular.min.js:71:437) at ib (http://localhost:53928/bower_components/angular/angular.min.js:72:1) at n (http://localhost:53928/bower_components/angular/angular.min.js:66:215) at http://localhost:53928/bower_components/angular/angular.min.js:77:99 at g (http://localhost:53928/bower_components/angular/angular.min.js:58:429) at http://localhost:53928/bower_components/angular/angular.min.js:58:67 at http://localhost:53928/bower_components/angular/angular.min.js:62:430 at d (http://localhost:53928/bower_components/angular/angular.min.js:59:422)
As per the title; when using
editable-bsdate
, options set in the scope and referenced in thee-datepicker-options
attribute are being ignored. Here's a JSFiddle example of the problem.I imagine it's something to do with the datepicker essentially being nested and not knowing about the defaults on init, but I'm not sure. Am I being dense?
Thanks