/** * Material TextField component * @module @nativescript-community/ui-material-textfield */ import { Color, TextField as NTextField } from '@nativescript/core'; import { VerticalTextAlignment } from '@nativescript-community/text'; type PropType = TObj[TProp]; export type TextFieldProperties = Partial>; export class TextField extends NTextField { /* * nativeView * @Android : com.google.android.material.textfield.TextInputLayout * @iOS : MDCTextField */ nativeViewProtected: any; helper: string; helperColor: Color; counterMaxLength: number; errorColor: Color; floating: boolean; placeholderColor: Color; variant: string; error: string; strokeColor: Color; strokeInactiveColor: Color; strokeDisabledColor: Color; floatingColor: Color; floatingInactiveColor: Color; buttonColor: Color; digits: string; verticalTextAlignment: VerticalTextAlignment; focus(); blur(); requestFocus(); clearFocus(); setSelection(start: number, stop?: number); } export function initTextInputEditText(); // android only