office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
24 lines • 1.11 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
// @codepen
var React = require("react");
var Checkbox_1 = require("office-ui-fabric-react/lib/Checkbox");
var CheckboxBasicExample = /** @class */ (function (_super) {
tslib_1.__extends(CheckboxBasicExample, _super);
function CheckboxBasicExample(props) {
var _this = _super.call(this, props) || this;
_this._onCheckboxChange = _this._onCheckboxChange.bind(_this);
return _this;
}
CheckboxBasicExample.prototype.render = function () {
return (React.createElement("div", null,
React.createElement(Checkbox_1.Checkbox, { label: "Standard checkbox", onChange: this._onCheckboxChange })));
};
CheckboxBasicExample.prototype._onCheckboxChange = function (ev, isChecked) {
console.log("The option has been changed to " + isChecked + ".");
};
return CheckboxBasicExample;
}(React.Component));
exports.CheckboxBasicExample = CheckboxBasicExample;
//# sourceMappingURL=Checkbox.Basic.Example.js.map
;