UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

33 lines (32 loc) 1.19 kB
/// <reference types="react" /> import { IBaseAutoFillProps, IBaseAutoFill } from './BaseAutoFill.types'; import { BaseComponent, KeyCodes } from '../../../Utilities'; export interface IBaseAutoFillState { displayValue?: string; } export declare class BaseAutoFill extends BaseComponent<IBaseAutoFillProps, IBaseAutoFillState> implements IBaseAutoFill { static defaultProps: { enableAutoFillOnKeyPress: KeyCodes[]; }; private _inputElement; private _autoFillEnabled; private _value; constructor(props: IBaseAutoFillProps); readonly cursorLocation: number; readonly isValueSelected: boolean; readonly value: string; readonly selectionStart: number; readonly selectionEnd: number; readonly inputElement: HTMLInputElement; componentWillReceiveProps(nextProps: IBaseAutoFillProps): void; componentDidUpdate(): void; render(): JSX.Element; focus(): void; clear(): void; private _onClick(); private _onKeyDown(ev); private _onChange(ev); private _notifyInputChange(newValue); private _updateValue(newValue); private _doesTextStartWith(text, startWith); }