UNPKG

@blinkk/selective-edit

Version:
27 lines (26 loc) 879 B
import { Field, FieldConfig } from '../field'; import { GlobalConfig, SelectiveEditor } from '../editor'; import { TemplateResult } from 'lit-html'; import { DeepObject } from '../../utility/deepObject'; import { Types } from '../types'; export interface TextAreaFieldConfig extends FieldConfig { /** * Placeholder for the textarea input. */ placeholder?: string; /** * Number of rows to use when displaying the textarea. */ rows?: number; /** * Textarea text wrap strategy. * * Browser defaults to soft wrapping. */ wrap?: 'hard' | 'soft'; } export declare class TextareaField extends Field { config: TextAreaFieldConfig; constructor(types: Types, config: TextAreaFieldConfig, globalConfig: GlobalConfig, fieldType?: string); templateInput(editor: SelectiveEditor, data: DeepObject): TemplateResult; }