UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

21 lines 1.16 kB
define(["require", "exports", "tslib", "react", "office-ui-fabric-react/lib/TextField", "./TextField.Examples.scss"], function (require, exports, tslib_1, React, TextField_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var TextFieldIconExample = /** @class */ (function (_super) { tslib_1.__extends(TextFieldIconExample, _super); function TextFieldIconExample() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._onChanged = function (text) { console.log(text); }; return _this; } TextFieldIconExample.prototype.render = function () { return (React.createElement("div", { className: 'docs-TextFieldExample' }, React.createElement(TextField_1.TextField, { label: 'TextField with an icon', iconProps: { iconName: 'Calendar' }, onChanged: this._onChanged }))); }; return TextFieldIconExample; }(React.Component)); exports.TextFieldIconExample = TextFieldIconExample; }); //# sourceMappingURL=TextField.Icon.Example.js.map