office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
32 lines (31 loc) • 1.12 kB
TypeScript
import { IBaseAutoFillProps, IBaseAutoFill } from './BaseAutoFill.Props';
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);
}