File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
projects/igniteui-angular/src/lib/time-picker Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,15 @@ export class IgxTimePickerComponent extends PickerBaseDirective
132
132
@Input ( )
133
133
public displayFormat : string
134
134
135
+ if ( value && this . validateFormat ( value ) ) {
136
+ this . _displayFormat = value ;
137
+ }
138
+ }
139
+
140
+ public get displayFormat ( ) : string {
141
+ return this . _displayFormat ;
142
+ }
143
+
135
144
/**
136
145
* The expected user input format and placeholder.
137
146
*
@@ -144,7 +153,17 @@ export class IgxTimePickerComponent extends PickerBaseDirective
144
153
* ```
145
154
*/
146
155
@Input ( )
147
- public inputFormat : string = DateTimeUtil . DEFAULT_TIME_INPUT_FORMAT ;
156
+ public set inputFormat ( value : string ) {
157
+ this . _inputFormat = DateTimeUtil . DEFAULT_TIME_INPUT_FORMAT ;
158
+
159
+ if ( value && this . validateFormat ( value ) ) {
160
+ this . _inputFormat = value ;
161
+ }
162
+ }
163
+
164
+ public get inputFormat ( ) : string {
165
+ return this . _inputFormat ;
166
+ }
148
167
149
168
/**
150
169
* Gets/Sets the interaction mode - dialog or drop down.
You can’t perform that action at this time.
0 commit comments