小编VIs*_*ain的帖子

ngx-Bootstrap 中的月份范围选择器

我正在使用ngx bootstrap 的日期范围选择器,它工作正常。但是我想将它用于月份范围选择器。有什么方法可以自定义并以这种方式使用它?

我试过传递这样的属性 [bsConfig]="{ dateInputFormat: 'YYYY-MM' }" 并从中省略日期,但在选择时我仍然需要选择日期。

<input class="form-control" name="dob" placeholder="Date of Birth" type="text"  bsDatepicker [(bsValue)]="bsValue" [bsConfig]="{ dateInputFormat: 'YYYY-MM' }">
Run Code Online (Sandbox Code Playgroud)

javascript ngx-bootstrap angular

6
推荐指数
1
解决办法
639
查看次数

标签 统计

angular ×1

javascript ×1

ngx-bootstrap ×1