UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

19 lines 1.21 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { SearchBox } from 'office-ui-fabric-react/lib/SearchBox'; import './SearchBox.Examples.scss'; // tslint:disable:jsx-no-lambda var SearchBoxDisabledExample = /** @class */ (function (_super) { tslib_1.__extends(SearchBoxDisabledExample, _super); function SearchBoxDisabledExample() { return _super !== null && _super.apply(this, arguments) || this; } SearchBoxDisabledExample.prototype.render = function () { return (React.createElement("div", { className: "ms-SearchBoxExample" }, React.createElement(SearchBox, { placeholder: "Search", onFocus: function () { return console.log('onFocus called'); }, onBlur: function () { return console.log('onBlur called'); }, disabled: true }), React.createElement(SearchBox, { placeholder: "Search", onFocus: function () { return console.log('onFocus called'); }, onBlur: function () { return console.log('onBlur called'); }, underlined: true, disabled: true }))); }; return SearchBoxDisabledExample; }(React.Component)); export { SearchBoxDisabledExample }; //# sourceMappingURL=SearchBox.Disabled.Example.js.map