UNPKG

govuk-angular

Version:

Angular components port of govuk-frontend nunjucks macros.

37 lines (36 loc) 1.63 kB
import { EventEmitter } from '@angular/core'; import { Label } from '../label/label'; import { GovUKDataCapture } from '../data-capture.component'; import { Hint } from '../hint/hint'; import { ErrorMessage } from '../error/error-message.model'; import * as i0 from "@angular/core"; /** * Input component with error handling. * * ```javascript * <govuk-input [id]="'with-date-fill'" * [(model)]="model.date" * [label]="{text:'What is the date today?', classes: 'govuk-label--m'}" * [linkAction]="{ text:'Use todays date', action: today } " * [hint]="{ text: 'Try the link below '}" * [classes]="'govuk-input--width-10'" * maxlength="10"></govuk-input> * ``` */ export declare class GovUKTextAreaComponent implements GovUKDataCapture<string> { id: string; name: string; classes: string; /** Type of input control to render. Defaults to 'text' */ type: 'text'; rows: string; describeBy?: string; label: Label; hint: Hint; errorMessage: ErrorMessage; model: string; modelChange: EventEmitter<string>; maxlength: number; static ɵfac: i0.ɵɵFactoryDeclaration<GovUKTextAreaComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<GovUKTextAreaComponent, "govuk-textarea", never, { "id": "id"; "name": "name"; "classes": "classes"; "type": "type"; "rows": "rows"; "describeBy": "describeBy"; "label": "label"; "hint": "hint"; "errorMessage": "errorMessage"; "model": "model"; "maxlength": "maxlength"; }, { "modelChange": "modelChange"; }, never, never>; }