# va-time-picker

The following examples exercise the various inputs.
- `control` is the `FormControl` instance
- `include24Hours` controls whether or not 'All Day' shows in the list
- `includeNotesOnly` controls whether or not 'notes only' shows in the list
- `placeholder` is the field label that floats when input is present
- `defaultTime` 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`)

```html
<va-time-picker [control]="control1" [includeNotesOnly]="true" [include24Hours]="true" [placeholder]="'Opens at'" [defaultTime]="'9:00'"></va-time-picker>
```

```typescript
class FormsInputDocComponent {
    ...
    constructor(..., private fb: FormBuilder) {
        this.control1 = this.fb.control('3:00');
    }
}
```
