The following examples exercise the various inputs.
control is the FormControl instanceinclude24Hours controls whether or not ‘All Day’ shows in the listincludeNotesOnly controls whether or not ‘notes only’ shows in the listplaceholder is the field label that floats when input is presentdefaultTime When an invalid time is input, this is the time returned.The value both accepted and returned by this control is a time string in 24 hour format (3:30, 15:00, 18:32)
<va-time-picker [control]="control1" [includeNotesOnly]="true" [include24Hours]="true" [placeholder]="'Opens at'" [defaultTime]="'9:00'"></va-time-picker>class FormsInputDocComponent {
...
constructor(..., private fb: FormBuilder) {
this.control1 = this.fb.control('3:00');
}
}