我想通过单击任何按钮/图标的外侧来打开我的 ngx-daterangepicker-material。我知道 ngx-daterangepicker-material 通过使用提供设施
@ViewChild(DaterangepickerDirective, { static: false }) pickerDirective: DaterangepickerDirective.
....
openDatepicker() {
this.pickerDirective.open();
}
但是我的问题没有用上面的代码解决,因为我的表单中有一个多日期范围选择器。当我尝试使用上述代码时,它将打开日期范围选择器,但该值仅在第一个日期范围选择器上设置。不在我点击的特定日期范围内。
任何帮助将不胜感激