Angular UI month picker

后端 未结 7 2301
日久生厌
日久生厌 2020-12-15 18:34

I am trying to use angular-ui-datepicker as a month picker. But not able to configure it, tried it all. Here is the PLUNKER.

I tried to set the modes as



        
7条回答
  •  温柔的废话
    2020-12-15 19:04

    For those people who are facing this issue, I have tried a lot of things and here is the simplest method that I found:

    
    
        
    
    

    The trick is that you must put datepicker-options="{minMode: 'month'}" datepicker-mode="'month'" into the input tag. This worked fine for me.

提交回复
热议问题