UNPKG

azure-devops-ui

Version:

React components for building web UI in Azure DevOps

21 lines (20 loc) 816 B
import "../../CommonImports"; import "../../Core/core.css"; import "./TextField.css"; import * as React from "react"; import { ITextField, ITextFieldProps } from "./TextField.Props"; export interface ITextFieldState { textLength: number; } export declare class TextField extends React.Component<ITextFieldProps, ITextFieldState> implements ITextField { private inputId; inputElement: React.RefObject<HTMLInputElement & HTMLTextAreaElement>; constructor(props: ITextFieldProps); focus(): void; readonly select: () => void; get selectionEnd(): number | null; get selectionStart(): number | null; setSelectionRange(start: number, end: number, direction?: "forward" | "backward" | "none" | undefined): void; render(): JSX.Element; private getTextLength; }