1

I am using datepicker from Angular directives for bootstrap. I want to show only months and years in the datePicker pop-up, but could not find a way.

I tried the similar approach of Bootstrap datepicker by giving it as dateoptions, but it did not work. Using datepicker-mode="month" min-mode="month" also did not helped.

Please find here The link to plunker

What we can observer is clicking on month in the datepicker, switch it to month view. So, this can be done, but how?

Community
  • 1
  • 1
Vivek Vardhan
  • 1,118
  • 3
  • 21
  • 44
  • Changing the config to `datepicker-mode="'month'" min-mode="'month'"` worked, but still some issues are there. Check in the plunker. It only sets the initial mode, not the `min mode` – Vivek Vardhan Oct 01 '14 at 07:26

1 Answers1

1

I found this topic. They resolved your problem with directive and Jquery. You could take a look.

Angular-ui-bootstrap - Date Picker - How can I restrict access to the date-selector in popup?

Community
  • 1
  • 1
Aliz
  • 736
  • 1
  • 11
  • 25