Closed SenvenQi closed 6 years ago
this.daterangepickerOptions.settings = { locale: { format: this.dateFormat, applyLabel: this.translate.instant('DRP_Apply'), cancelLabel: this.translate.instant('DRP_Cancel'), fromLabel: this.translate.instant('DRP_From'), toLabel: this.translate.instant('DRP_To'), customRangeLabel: this.translate.instant('DRP_Custom'), daysOfWeek: [ this.translate.instant('DRP_Su'), this.translate.instant('DRP_Mo'), this.translate.instant('DRP_Tu'), this.translate.instant('DRP_We'), this.translate.instant('DRP_Th'), this.translate.instant('DRP_Fr'), this.translate.instant('DRP_Sa') ], monthNames: [ this.translate.instant('DRP_January'), this.translate.instant('DRP_February'), this.translate.instant('DRP_March'), this.translate.instant('DRP_April'), this.translate.instant('DRP_May'), this.translate.instant('DRP_June'), this.translate.instant('DRP_July'), this.translate.instant('DRP_August'), this.translate.instant('DRP_September'), this.translate.instant('DRP_October'), this.translate.instant('DRP_November'), this.translate.instant('DRP_December') ] }, alwaysShowCalendars: false, startDate: this.initStartDate, endDate: this.initEndDate, ranges: { [this.translate.instant('DRP_Today')]: [moment(), moment()], [this.translate.instant('DRP_LastMonth')]: [moment().subtract(1, 'month'), moment()], [this.translate.instant('DRP_Last3Months')]: [moment().subtract(4, 'month'), moment()], [this.translate.instant('DRP_Last6Months')]: [moment().subtract(6, 'month'), moment()], [this.translate.instant('DRP_Last12Months')]: [moment().subtract(12, 'month'), moment()], } };
I want to change the settings to change the ui,But it doesn't change.
this.daterangepickerOptions.settings = { locale: { format: this.dateFormat, applyLabel: this.translate.instant('DRP_Apply'), cancelLabel: this.translate.instant('DRP_Cancel'), fromLabel: this.translate.instant('DRP_From'), toLabel: this.translate.instant('DRP_To'), customRangeLabel: this.translate.instant('DRP_Custom'), daysOfWeek: [ this.translate.instant('DRP_Su'), this.translate.instant('DRP_Mo'), this.translate.instant('DRP_Tu'), this.translate.instant('DRP_We'), this.translate.instant('DRP_Th'), this.translate.instant('DRP_Fr'), this.translate.instant('DRP_Sa') ], monthNames: [ this.translate.instant('DRP_January'), this.translate.instant('DRP_February'), this.translate.instant('DRP_March'), this.translate.instant('DRP_April'), this.translate.instant('DRP_May'), this.translate.instant('DRP_June'), this.translate.instant('DRP_July'), this.translate.instant('DRP_August'), this.translate.instant('DRP_September'), this.translate.instant('DRP_October'), this.translate.instant('DRP_November'), this.translate.instant('DRP_December') ] }, alwaysShowCalendars: false, startDate: this.initStartDate, endDate: this.initEndDate, ranges: { [this.translate.instant('DRP_Today')]: [moment(), moment()], [this.translate.instant('DRP_LastMonth')]: [moment().subtract(1, 'month'), moment()], [this.translate.instant('DRP_Last3Months')]: [moment().subtract(4, 'month'), moment()], [this.translate.instant('DRP_Last6Months')]: [moment().subtract(6, 'month'), moment()], [this.translate.instant('DRP_Last12Months')]: [moment().subtract(12, 'month'), moment()], } };
I want to change the settings to change the ui,But it doesn't change.