UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

24 lines 1.12 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { TextField } from 'office-ui-fabric-react/lib/TextField'; import { autobind } from 'office-ui-fabric-react/lib/Utilities'; import './TextField.Examples.scss'; var TextFieldIconExample = /** @class */ (function (_super) { tslib_1.__extends(TextFieldIconExample, _super); function TextFieldIconExample() { return _super !== null && _super.apply(this, arguments) || this; } TextFieldIconExample.prototype.render = function () { return (React.createElement("div", { className: 'docs-TextFieldExample' }, React.createElement(TextField, { label: 'TextField with an icon', iconProps: { iconName: 'Calendar' }, onChanged: this._onChanged }))); }; TextFieldIconExample.prototype._onChanged = function (text) { console.log(text); }; tslib_1.__decorate([ autobind ], TextFieldIconExample.prototype, "_onChanged", null); return TextFieldIconExample; }(React.Component)); export { TextFieldIconExample }; //# sourceMappingURL=TextField.Icon.Example.js.map