add useNativeValidation to MDC textfield

This commit is contained in:
Tom Spencer
2019-01-31 17:08:27 +00:00
parent e6e55443f8
commit 9da338ad53
2 changed files with 10 additions and 0 deletions
+2
View File
@@ -71,6 +71,8 @@ export default class MDCTextFieldFoundation extends MDCFoundation<MDCTextFieldAd
setValid(isValid: boolean): void;
setUseNativeValidation(useNativeValidation: boolean): void;
isDisabled(): boolean;
setDisabled(disabled: boolean): void;
+8
View File
@@ -78,4 +78,12 @@ export class MDCTextField extends MDCComponent<MDCTextFieldAdapter, MDCTextField
* Recomputes the outline SVG path for the outline element.
*/
layout(): void;
/**
* Ideally we would use a 'writeonly' modifier here since this is a setter,
* but such a thing does not exist.
* https://github.com/Microsoft/TypeScript/issues/4839
* https://github.com/Microsoft/TypeScript/issues/21759
*/
useNativeValidation: boolean;
}