@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
71 lines (70 loc) • 2.79 kB
TypeScript
import { EventEmitter, Injector, OnInit } from '@angular/core';
import { SimplePropertySchemaFieldLoaderComponent } from '../../../schema/schema-field-host.component';
import { SmeInternalFormFieldComponent } from '../form-field.component';
import * as i0 from "@angular/core";
export declare class TextFormFieldLoaderComponent extends SimplePropertySchemaFieldLoaderComponent {
static ɵfac: i0.ɵɵFactoryDeclaration<TextFormFieldLoaderComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TextFormFieldLoaderComponent, "ng-component", never, {}, {}, never, never, false, never>;
}
/**
* Accessible text field implementation
*/
export declare class TextFormFieldComponent extends SmeInternalFormFieldComponent<any> implements OnInit {
/**
* The source name to use for logging
*/
protected get logSourceName(): string;
/**
* Indicates that multiple lines should be accepted
*/
multiline: boolean;
/**
* Indicates the number of visible rows for multiline text fields
* Not applicable to single line text
*/
rows: number;
/**
* Indicates the number of visible columns for multiline text fields
* Not applicable to single line text
*/
columns: number;
/**
* Indicates that the field action should be shown
*/
showFieldAction: boolean;
/**
* The text for the field action
*/
fieldActionText: string;
/**
* The icon class for the field action
*/
fieldActionIconClass: string;
/**
* The aria label for the action button
*/
fieldActionAriaLabel?: string;
/**
* The output for when the field action is activated
*/
fieldAction: EventEmitter<string>;
/**
* Initializes a new instance of the TextFormFieldComponent
*/
constructor(injector: Injector);
/**
* Executes the field action
*/
onFieldAction(): void;
/**
* Executes the field action
*/
onEnterKey(event: Event): void;
/**
* Creates the idBag used by this component to store unique element ids.
* id values will be assigned be the @see BaseComponent super class.
*/
protected createIdBag(): MsftSme.StringMap<string>;
static ɵfac: i0.ɵɵFactoryDeclaration<TextFormFieldComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TextFormFieldComponent, "sme-form-field[type=\"text\"]", never, { "multiline": "multiline"; "rows": "rows"; "columns": "columns"; "showFieldAction": "showFieldAction"; "fieldActionText": "fieldActionText"; "fieldActionIconClass": "fieldActionIconClass"; "fieldActionAriaLabel": "fieldActionAriaLabel"; }, { "fieldAction": "fieldAction"; }, never, never, false, never>;
}