UNPKG

@trimble-oss/moduswebcomponents

Version:

Modus Web Components is a modern, accessible UI library built with Stencil JS that provides reusable web components following Trimble's Modus design system. This updated version focuses on improved flexibility, enhanced theming options, comprehensive cust

60 lines (59 loc) 2.28 kB
import { EventEmitter } from '../../stencil-public-runtime'; import { IInputFeedbackProp, ModusSize } from '../types'; /** * A customizable textarea component. */ export declare class ModusWcTextarea { private inheritedAttributes; private readonly resolveEffectiveId; /** Reference to the host element */ el: HTMLElement; /** Controls automatic correction in inputted text. Support by browser varies. */ autoCorrect?: 'on' | 'off'; /** Indicates that the input should have a border. */ bordered?: boolean; /** Custom CSS class to apply to the textarea (supports DaisyUI). */ customClass?: string; /** The disabled state of the textarea. */ disabled?: boolean; /** A hint to the browser for which enter key to display. */ enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'; /** Feedback to render below the input. */ feedback?: IInputFeedbackProp; /** The ID of the input element. */ inputId?: string; /** The tabindex of the input. */ inputTabIndex?: number; /** The text to display within the label. */ label?: string; /** The maximum number of characters allowed in the textarea. */ maxLength?: number; /** The minimum number of characters required in the textarea. */ minLength?: number; /** Name of the form control. Submitted with the form as part of a name/value pair. */ name?: string; /** The placeholder text for the textarea. */ placeholder?: string; /** The readonly state of the textarea. */ readonly?: boolean; /** A value is required for the form to be submittable. */ required?: boolean; /** The number of visible text lines for the textarea. */ rows?: number; /** The size of the input. */ size?: ModusSize; /** The value of the textarea. */ value: string; /** Emitted when the input loses focus. */ inputBlur: EventEmitter<FocusEvent>; /** Emitted when the input value changes. */ inputChange: EventEmitter<InputEvent>; /** Emitted when the input gains focus. */ inputFocus: EventEmitter<FocusEvent>; componentWillLoad(): void; private getClasses; private handleBlur; private handleFocus; private handleInput; render(): any; }