UNPKG

mat-contenteditable

Version:

Angular contenteditable directive for Angular forms and Material Design

35 lines (34 loc) 1.44 kB
import { ViewContainerRef, OnInit, DoCheck } from '@angular/core'; import { MatFormFieldControl, ErrorStateMatcher, CanUpdateErrorState } from '@angular/material'; import { Subject } from 'rxjs'; import { NgControl, NgForm, FormGroupDirective } from '@angular/forms'; import { _MatInputMixinBase } from './mat-contenteditable.directive'; export declare class MatCkeditorDirective extends _MatInputMixinBase implements MatFormFieldControl<string>, DoCheck, CanUpdateErrorState, OnInit { protected readonly viewRef: ViewContainerRef; ngControl: NgControl; /** * Implemented as part of MatFormFieldControl. * See https://material.angular.io/guide/creating-a-custom-form-field-control */ static nextId: number; value: string; readonly stateChanges: Subject<void>; id: string; placeholder: string; contentEmpty: string[]; readonly empty: boolean; readonly shouldLabelFloat: boolean; focused: boolean; required: boolean; disabled: boolean; errorState: boolean; errorStateMatcher: ErrorStateMatcher; controlType: string; describedBy: string; protected editor: any; constructor(viewRef: ViewContainerRef, ngControl: NgControl, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, _defaultErrorStateMatcher: ErrorStateMatcher); ngOnInit(): void; ngDoCheck(): void; setDescribedByIds(ids: string[]): void; onContainerClick(): void; }