office-ui-fabric-react
Version: 
Reusable React components for building experiences for Office 365.
27 lines (26 loc) • 814 B
TypeScript
import { ISearchBoxProps } from './SearchBox.Props';
import { BaseComponent } from '../../Utilities';
export interface ISearchBoxState {
    value?: string;
    hasFocus?: boolean;
    id?: string;
}
export declare class SearchBox extends BaseComponent<ISearchBoxProps, ISearchBoxState> {
    static defaultProps: ISearchBoxProps;
    private _rootElement;
    private _inputElement;
    private _latestValue;
    constructor(props: ISearchBoxProps);
    componentWillReceiveProps(newProps: ISearchBoxProps): void;
    render(): JSX.Element;
    /**
     * Sets focus to the search box input field
     */
    focus(): void;
    private _onClearClick(ev?);
    private _onFocusCapture(ev);
    private _onKeyDown(ev);
    private _onBlur(ev);
    private _onInputChange(ev);
    private _callOnChange(newValue);
}