@@ -52,19 +52,19 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
52
52
/**
53
53
* An @Input property that allows you to set the locale settings used in `displayFormat`.
54
54
* @example
55
- *```html
55
+ * ```html
56
56
* <input igxDateTimeEditor [locale]="'en'">
57
- *```
57
+ * ```
58
58
*/
59
59
@Input ( )
60
60
public locale : string ;
61
61
62
62
/**
63
63
* An @Input property that allows you to set the minimum possible value the editor will allow.
64
64
* @example
65
- *```html
65
+ * ```html
66
66
* <input igxDateTimeEditor [minValue]="minDate">
67
- *```
67
+ * ```
68
68
*/
69
69
public get minValue ( ) : string | Date {
70
70
return this . _minValue ;
@@ -79,9 +79,9 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
79
79
/**
80
80
* An @Input property that allows you to set the maximum possible value the editor will allow.
81
81
* @example
82
- *```html
82
+ * ```html
83
83
* <input igxDateTimeEditor [maxValue]="maxDate">
84
- *```
84
+ * ```
85
85
*/
86
86
public get maxValue ( ) : string | Date {
87
87
return this . _maxValue ;
@@ -96,9 +96,9 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
96
96
/**
97
97
* An @Input property that allows you to specify if the currently spun date segment should loop over.
98
98
* @example
99
- *```html
99
+ * ```html
100
100
* <input igxDateTimeEditor [isSpinLoop]="false">
101
- *```
101
+ * ```
102
102
*/
103
103
@Input ( )
104
104
public isSpinLoop = true ;
@@ -107,9 +107,9 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
107
107
* An @Input property that allows you to set both pre-defined format options such as `shortDate` and `longDate`,
108
108
* as well as constructed format string using characters supported by `DatePipe`, e.g. `EE/MM/yyyy`.
109
109
* @example
110
- *```html
110
+ * ```html
111
111
* <input igxDateTimeEditor [displayFormat]="'shortDate'">
112
- *```
112
+ * ```
113
113
*/
114
114
@Input ( )
115
115
public displayFormat : string ;
@@ -118,9 +118,9 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
118
118
* An @Input property that allows you to get/set the expected user input format(and placeholder).
119
119
* for the editor.
120
120
* @example
121
- *```html
121
+ * ```html
122
122
* <input [igxDateTimeEditor]="'dd/MM/yyyy'">
123
- *```
123
+ * ```
124
124
*/
125
125
@Input ( `igxDateTimeEditor` )
126
126
public set inputFormat ( value : string ) {
@@ -216,7 +216,7 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
216
216
public ngOnChanges ( changes : SimpleChanges ) {
217
217
if ( changes [ 'inputFormat' ] || changes [ 'locale' ] ) {
218
218
this . _inputDateParts = DatePickerUtil . parseDateTimeFormat ( this . inputFormat ) ;
219
- this . inputFormat = this . _inputDateParts . map ( p => p . format ) . join ( '' ) ; ;
219
+ this . inputFormat = this . _inputDateParts . map ( p => p . format ) . join ( '' ) ;
220
220
if ( ! this . nativeElement . placeholder ) {
221
221
this . renderer . setAttribute ( this . nativeElement , 'placeholder' , this . inputFormat ) ;
222
222
}
@@ -233,9 +233,9 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
233
233
}
234
234
235
235
/**
236
- * Increment specified DatePart.
237
- * @param datePart The optional DatePart to increment. Defaults to Date or Hours(when Date is absent from the inputFormat - ex:'HH:mm').
238
- */
236
+ * Increment specified DatePart.
237
+ * @param datePart The optional DatePart to increment. Defaults to Date or Hours(when Date is absent from the inputFormat - ex:'HH:mm').
238
+ */
239
239
public increment ( datePart ?: DatePart ) : void {
240
240
const targetDatePart = this . targetDatePart ;
241
241
if ( ! targetDatePart ) { return ; }
@@ -247,10 +247,10 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
247
247
}
248
248
249
249
/**
250
- * Decrement specified DatePart.
251
- *
252
- * @param datePart The optional DatePart to decrement. Defaults to Date or Hours(when Date is absent from the inputFormat - ex:'HH:mm').
253
- */
250
+ * Decrement specified DatePart.
251
+ *
252
+ * @param datePart The optional DatePart to decrement. Defaults to Date or Hours(when Date is absent from the inputFormat - ex:'HH:mm').
253
+ */
254
254
public decrement ( datePart ?: DatePart ) : void {
255
255
const targetDatePart = this . targetDatePart ;
256
256
if ( ! targetDatePart ) { return ; }
0 commit comments