uxsolutions / bootstrap-datepicker

A datepicker for twitter bootstrap (@twbs)
Apache License 2.0
12.66k stars 6.06k forks source link

Make it possible to select whole weeks #615

Open alexfrancavilla opened 11 years ago

alexfrancavilla commented 11 years ago

It would be nice to have an option to select a week.

For example: Show a view with calendar weeks, or make the week number in the normal month view clickable.

Maybe I'll add that feature by myself and make a pull request, but since my time is very limited at the moment I'm not sure if I can contribute such soon.

PlippiePlop commented 11 years ago

That is a good idea. Highlight the week row on day selection, maybe add class rowt. Extend this by picking first week day or something as start end end of week day as end day. Or indeed clicking on the weeknumber highlights that week.

dws-sarthak commented 10 years ago

Waiting for this release badly.. really need it..

koppelbakje commented 10 years ago

I've made a simple week selector, it's not perfect but it does the job for me. You can enable it by passing the option selectWeek: true

koppelbakje/bootstrap-datepicker@4ca0196a64671f091d755bb6744636d1172f8b51

PlippiePlop commented 10 years ago

Very good job Koppelbakje. I like it.

an-dev commented 9 years ago

What is the status of this feature?

joegrandominico commented 9 years ago

Also curious of status on this

gutschik commented 9 years ago

@koppelbakje did you ever create a PR for this feature?

SadokLadhari commented 9 years ago

@koppelbakje Great work :+1:

trinzia commented 9 years ago

Can someone add this to main repo, pretty please ?

Eimis commented 9 years ago

I would also need this :/

acrobat commented 9 years ago

I've started a PR to backport this feature, here #1579. I think it will not make the 1.5 release but we will see how long it will take!

NaWer commented 8 years ago

https://jsfiddle.net/au4rz67s/4/

Something like this ?

evpaassen commented 8 years ago

@NaWer There's a problem in your example when you click on the week already selected. I fixed it here: https://jsfiddle.net/k9h9hmry/5/

NaWer commented 8 years ago

@evpaassen Thanks, I didn't see it ;) Strange bug... don't understand it...