bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

'show-weeks' attribute not working on popup date picker

Open orenww opened this issue 11 years ago • 4 comments

'show-weeks' attribute not working on popup date picker.

I tried to set 'show-weeks' to false and the calendar still show number of the week.

Your example with the flag show-weeks="false"

see http://plnkr.co/edit/oERqsVEJSRSQvrbuT1iH?p=preview

orenww avatar Dec 28 '14 14:12 orenww

Agree that it is a bug, if you need a work around, use the datepicker-options:

$scope.dateOptions = { formatYear: 'yy', startingDay: 1, showWeeks: false };

acgentry avatar Dec 30 '14 21:12 acgentry

Hi, I have opened a PR for the fix for this issue. Please have a look :)

ankit5990 avatar Jan 02 '15 12:01 ankit5990

There are some API inconsistencies regarding the dateOptions and attribute options indeed. We will be looking into datepicker related issues before the 1.0 release.

rvanbaalen avatar Mar 31 '15 15:03 rvanbaalen

I am using version 1.3.3 and showWeeks attributes still does not work. I had to use the datepicker-options attribute to make it work.

pjlasl avatar Jul 18 '16 15:07 pjlasl