File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
projects/igniteui-angular/src/lib/date-range-picker Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ With projected inputs:
120
120
| overlaySettings | OverlaySettings | Changes the default overlay settings used by the ` IgxDateRangePickerComponent ` . |
121
121
| placeholder | string | Sets the ` placeholder ` for single-input ` IgxDateRangePickerComponent ` . |
122
122
| weekStart | number | Sets the start day of the week. Can be assigned to a numeric value or to ` WEEKDAYS ` enum value. |
123
+ | showWeekNumbers | number | Shows or hides week numbers. |
123
124
124
125
### Outputs
125
126
| Name | Description | Cancelable | Emitted with |
Original file line number Diff line number Diff line change @@ -256,6 +256,20 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective
256
256
@Input ( )
257
257
public override outlet : IgxOverlayOutletDirective | ElementRef < any > ;
258
258
259
+ /**
260
+ * Show/hide week numbers
261
+ *
262
+ * @remarks
263
+ * Default is `false`.
264
+ *
265
+ * @example
266
+ * ```html
267
+ * <igx-date-range-picker [showWeekNumbers]="true"></igx-date-range-picker>
268
+ * ``
269
+ */
270
+ @Input ( )
271
+ public showWeekNumbers = false ;
272
+
259
273
/**
260
274
* Emitted when the picker's value changes. Used for two-way binding.
261
275
*
@@ -1018,6 +1032,7 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective
1018
1032
this . calendar . weekStart = this . weekStart ;
1019
1033
this . calendar . hideOutsideDays = this . hideOutsideDays ;
1020
1034
this . calendar . monthsViewNumber = this . displayMonthsCount ;
1035
+ this . calendar . showWeekNumbers = this . showWeekNumbers ;
1021
1036
this . calendar . selected . pipe ( takeUntil ( this . _destroy$ ) ) . subscribe ( ( ev : Date [ ] ) => this . handleSelection ( ev ) ) ;
1022
1037
1023
1038
componentInstance . mode = this . mode ;
You can’t perform that action at this time.
0 commit comments