日期选择器引导程序的问题 - 选择日期禁用
有人可以帮我解决这个问题吗?
我只有一周的时间来交付
下面是 Angular 中的 html 代码,我不知道我做错了什么
我只有一周的时间来交付
<input
type="text"
class="form-control rangeDate"
(bsValueChange)="changeDate($event)"
[bsConfig]="bsConfig"
[maxDate]="maxDate"
#drp="bsDaterangepicker"
bsDaterangepicker
[(bsValue)]="dateRangePickerValue"
/>
public datePickerValue: Date = new Date();
public dateRangePickerValue?: (Date | undefined)[];
public range1: Date = new Date();
public range2: Date = new Date();
minMode: BsDatepickerViewMode = 'month';
bsConfig?: Partial<BsDatepickerConfig>;
maxDate: Date;
constructor(
private service: FinancialReportsService,
private toasterService: ToasterService,
private localeServices: BsLocaleService,
private helper: ErpgrafService
) {
this.maxDate = new Date();
this.maxDate.setDate(this.maxDate.getDate());
this.localeServices.use('pt-br');
this.bsConfig = {
containerClass: 'theme-dark-blue',
minMode: this.minMode,
rangeInputFormat: 'MMMM YYYY',
showWeekNumbers: false,
};
}
Somebody can help me with this problem?
I only have one week to deliver
Below is the html code in angular , I don't know what I did wrong
I only have one week to deliver
<input
type="text"
class="form-control rangeDate"
(bsValueChange)="changeDate($event)"
[bsConfig]="bsConfig"
[maxDate]="maxDate"
#drp="bsDaterangepicker"
bsDaterangepicker
[(bsValue)]="dateRangePickerValue"
/>
public datePickerValue: Date = new Date();
public dateRangePickerValue?: (Date | undefined)[];
public range1: Date = new Date();
public range2: Date = new Date();
minMode: BsDatepickerViewMode = 'month';
bsConfig?: Partial<BsDatepickerConfig>;
maxDate: Date;
constructor(
private service: FinancialReportsService,
private toasterService: ToasterService,
private localeServices: BsLocaleService,
private helper: ErpgrafService
) {
this.maxDate = new Date();
this.maxDate.setDate(this.maxDate.getDate());
this.localeServices.use('pt-br');
this.bsConfig = {
containerClass: 'theme-dark-blue',
minMode: this.minMode,
rangeInputFormat: 'MMMM YYYY',
showWeekNumbers: false,
};
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论