bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Datepicker popup not respecting show-weeks=false

Open ronnieoverby opened this issue 12 years ago • 15 comments

Same as #1132.

I'm on 0.11.0.

ronnieoverby avatar May 17 '14 00:05 ronnieoverby

BTW why is it true by default? It's a dumb feature IMHO. No offense.

ronnieoverby avatar May 17 '14 00:05 ronnieoverby

@ronnieoverby show-weeks is no longer a watched attribute, you have to pass it through the datepicker-options. You can change the configuration from a single point in your application, if you want to turn this off by default, and don't have to pass this in every datepicker!

bekos avatar May 17 '14 08:05 bekos

Documentation should be updated to reflect that.

gilluminate avatar Sep 23 '14 18:09 gilluminate

+1 docs need a quick fix

russmatney avatar Sep 29 '14 14:09 russmatney

+1 docs needs to be updated

jrgunawan avatar Sep 30 '14 21:09 jrgunawan

I think the documentation already does mention that:

Options for datepicker can be passed as JSON using the datepicker-options attribute.

At nowhere does it mention that show-weeks can be used as an attribute when using a datepicker popup.

chrisirhc avatar Oct 06 '14 06:10 chrisirhc

The line you mentioned does exist in the docs - however, under "Datepicker Settings" (where show-weeks is actually listed, it also says:

All settings can be provided as attributes in the datepicker or globally configured through the datepickerConfig.

Perhaps the use of "attributes" here is misleading, and "properties" wouldn't lead to as much confusion? Now that I'm looking at it again, I can see you've got a little Eye icon next to some of these options too - this must mean something! I didn't notice that icon at all until I was thinking about how these docs could be more readable. The current state of the docs lead me to believe all the Datepicker Settings could be listed as attrs for the datepicker directive in the html itself.

russmatney avatar Oct 06 '14 12:10 russmatney

The plunker referenced on the examples page (http://angular-ui.github.io/bootstrap/) still has show-weeks as a html attribute. It gets even funnier, as the attribute works like a charm in the plunker :)

Also i'm not sure why a setting like this can't be configured on the html side. I feel having to keep these settings on the scope, promotes unwanted coupling.

kosz avatar Dec 19 '14 20:12 kosz

+1 docs need an update

iyeldinov avatar Jan 29 '15 16:01 iyeldinov

:+1: this is super confusing

gitnik avatar Mar 27 '15 14:03 gitnik

+1 to super confusing, the documentation needs to be more clear

yabasha avatar Mar 28 '15 06:03 yabasha

+1

prettycode avatar May 19 '15 15:05 prettycode

Was wondering the exact same thing. +1. Also the CDNs on its plunker doesn't seem to work anymore. They hang.

holimL avatar Jun 22 '15 15:06 holimL

It should be noted that any attribute without an eye icon is not supported for watching. The documentation makes this clearer in master with an explanation in the first few paragraphs.

As a consequence, closing this as resolved.

wesleycho avatar Aug 06 '15 21:08 wesleycho

hi i have issue occur in angular datepicker after edit dateTime. that can't show the datetime. in Html dateTime aleardy exit but i can't show on UI

MuhammadTayyeb avatar Aug 24 '16 19:08 MuhammadTayyeb