@nativescript-community/ui-material-textview
Version:
Material Design Text views allow users to input text into your app.
23 lines (22 loc) • 854 B
TypeScript
import { ElementRef } from '@angular/core';
import { BaseValueAccessor } from '@nativescript/angular';
import { View } from '@nativescript/core';
import * as i0 from "@angular/core";
export type TextView = {
text: string;
} & View;
/**
* The accessor for writing a text and listening to changes that is used by the
* {@link NgModel} directives.
*
* ### Example
* ```
* <MDTextView [(ngModel)]="model.test"></MDTextView>
* ```
*/
export declare class TextValueAccessor extends BaseValueAccessor<TextView> {
constructor(elementRef: ElementRef);
writeValue(value: any): void;
static ɵfac: i0.ɵɵFactoryDeclaration<TextValueAccessor, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<TextValueAccessor, "MDTextView[ngModel],MDTextView[formControlName],MDTextView[formControl]", never, {}, {}, never, never, false, never>;
}