office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
23 lines • 1.32 kB
JavaScript
define(["require", "exports", "tslib", "react", "office-ui-fabric-react/lib/TextField", "office-ui-fabric-react/lib/Utilities", "./TextField.Examples.scss"], function (require, exports, tslib_1, React, TextField_1, Utilities_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
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_1.TextField, { label: 'TextField with an icon', iconProps: { iconName: 'Calendar' }, onChanged: this._onChanged })));
};
TextFieldIconExample.prototype._onChanged = function (text) {
console.log(text);
};
tslib_1.__decorate([
Utilities_1.autobind
], TextFieldIconExample.prototype, "_onChanged", null);
return TextFieldIconExample;
}(React.Component));
exports.TextFieldIconExample = TextFieldIconExample;
});
//# sourceMappingURL=TextField.Icon.Example.js.map