fix(input): add/remove disabled on native text input

Close #5280
This commit is contained in:
Adam Bradley
2016-02-01 14:16:44 -06:00
parent 3e8b7ca96d
commit 11b8e08567
5 changed files with 40 additions and 0 deletions

View File

@ -51,6 +51,10 @@ export class NativeInput {
this._renderer.setElementAttribute(this._elementRef.nativeElement, 'aria-labelledby', val);
}
isDisabled(val: boolean) {
this._renderer.setElementAttribute(this._elementRef.nativeElement, 'disabled', val ? '' : null);
}
/**
* @private
*/