From 5694a517671ce95b360f41c0a247a11274005e7a Mon Sep 17 00:00:00 2001 From: "volkan.sahin" Date: Wed, 26 Apr 2023 08:54:07 +0300 Subject: [PATCH] [feature]: add setDisableState to enable or disable component --- src/ng-multiselect-dropdown/src/multiselect.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ng-multiselect-dropdown/src/multiselect.component.ts b/src/ng-multiselect-dropdown/src/multiselect.component.ts index e6e93f2..0c46e30 100644 --- a/src/ng-multiselect-dropdown/src/multiselect.component.ts +++ b/src/ng-multiselect-dropdown/src/multiselect.component.ts @@ -165,6 +165,10 @@ export class MultiSelectComponent implements ControlValueAccessor { this.onTouchedCallback = fn; } + // Set disable or enable status + setDisabledState(isDisabled: boolean): void { + this.disabled = isDisabled; + } // Set touched on blur @HostListener("blur") public onTouched() {