Skip to content

Commit

Permalink
feat(timepicker): add disabled state (#3127)
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitry Nehaychik <4dmitr@gmail.com>
  • Loading branch information
sashaqred and nnixaa committed Oct 26, 2022
1 parent 1962013 commit 7af5a8d
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -465,6 +465,10 @@ export class NbTimePickerDirective<D> implements AfterViewInit, ControlValueAcce
this.onTouched = fn;
}

setDisabledState(isDisabled: boolean): void {
this.input.disabled = isDisabled;
}

protected parseNativeDateString(value: string): string {
const date = this.dateService.today();
const year = this.dateService.getYear(date);
Expand Down

0 comments on commit 7af5a8d

Please sign in to comment.