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 @@ -257,6 +257,20 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective
257
257
@Input ( )
258
258
public outlet : IgxOverlayOutletDirective | ElementRef < any > ;
259
259
260
+ /**
261
+ * Show/hide week numbers
262
+ *
263
+ * @remarks
264
+ * Default is `false`.
265
+ *
266
+ * @example
267
+ * ```html
268
+ * <igx-date-range-picker [showWeekNumbers]="true"></igx-date-picker>
269
+ * ``
270
+ */
271
+ @Input ( )
272
+ public showWeekNumbers = false ;
273
+
260
274
/**
261
275
* Emitted when the picker's value changes. Used for two-way binding.
262
276
*
@@ -1020,6 +1034,7 @@ export class IgxDateRangePickerComponent extends PickerBaseDirective
1020
1034
this . calendar . weekStart = this . weekStart ;
1021
1035
this . calendar . hideOutsideDays = this . hideOutsideDays ;
1022
1036
this . calendar . monthsViewNumber = this . displayMonthsCount ;
1037
+ this . calendar . showWeekNumbers = this . showWeekNumbers ;
1023
1038
this . calendar . selected . pipe ( takeUntil ( this . _destroy$ ) ) . subscribe ( ( ev : Date [ ] ) => this . handleSelection ( ev ) ) ;
1024
1039
1025
1040
componentInstance . mode = this . mode ;
You can’t perform that action at this time.
0 commit comments