UNPKG

@nativescript-community/ui-material-textview

Version:

Material Design Text views allow users to input text into your app.

36 lines (29 loc) 877 B
/** * Material TextView component * @module @nativescript-community/ui-material-textview */ import { Color, EditableTextBase } from '@nativescript/core'; type PropType<TObj, TProp extends keyof TObj> = TObj[TProp]; export type TextViewProperties = Partial<Pick<TextView, keyof TextView>>; export class TextView extends EditableTextBase { /* * nativeView * @Android : com.google.android.material.textfield.TextInputLayout * @iOS : MDCMultilineTextField */ nativeViewProtected: any; helper: string; helperColor: Color; counterMaxLength: number; errorColor: Color; floating: boolean; placeholderColor: Color; variant: string; error: string; focus(); blur(); requestFocus(); clearFocus(); setSelection(start: number, stop?: number); } export function initTextInputEditText(); // android only