UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

22 lines 1.35 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { SearchBox } from 'office-ui-fabric-react/lib/SearchBox'; import './SearchBox.Small.Example.scss'; // tslint:disable:jsx-no-lambda var SearchBoxSmallExample = /** @class */ (function (_super) { tslib_1.__extends(SearchBoxSmallExample, _super); function SearchBoxSmallExample() { return _super !== null && _super.apply(this, arguments) || this; } SearchBoxSmallExample.prototype.render = function () { return (React.createElement("div", { className: "ms-SearchBoxSmallExample" }, React.createElement(SearchBox, { placeholder: "Search", onEscape: function (ev) { console.log('Custom onEscape Called'); }, onClear: function (ev) { console.log('Custom onClear Called'); }, onChange: function (newValue) { return console.log('SearchBox onChange fired: ' + newValue); }, onSearch: function (newValue) { return console.log('SearchBox onSearch fired: ' + newValue); }, onFocus: function () { return console.log('onFocus called'); }, onBlur: function () { return console.log('onBlur called'); } }))); }; return SearchBoxSmallExample; }(React.Component)); export { SearchBoxSmallExample }; //# sourceMappingURL=SearchBox.Small.Example.js.map