feat(select): add disabled status in select options

This commit is contained in:
Víctor Oliva
2016-06-30 03:01:03 +02:00
committed by Adam Bradley
parent d993a1bfd8
commit 76619cf4d0
8 changed files with 41 additions and 3 deletions

View File

@ -14,6 +14,7 @@ import { isPresent, isTrueProperty } from '../../util/util';
})
export class Option {
private _checked: any = false;
private _disabled: any = false;
private _value: any;
/**
@ -50,6 +51,18 @@ export class Option {
this._value = val;
}
/**
* @input {boolean} Whether or not the option is disabled
*/
@Input()
get disabled() {
return this._disabled;
}
set disabled(val) {
this._disabled = isTrueProperty(val);
}
/**
* @private
*/