UNPKG

@nativescript-community/ui-material-textview

Version:
23 lines (22 loc) 853 B
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, true, never>; }