office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
20 lines • 1.3 kB
JavaScript
import * as tslib_1 from "tslib";
// @codepen
import * as React from 'react';
import { SpinButton } from 'office-ui-fabric-react/lib/SpinButton';
var SpinButtonBasicExample = /** @class */ (function (_super) {
tslib_1.__extends(SpinButtonBasicExample, _super);
function SpinButtonBasicExample() {
return _super !== null && _super.apply(this, arguments) || this;
}
SpinButtonBasicExample.prototype.render = function () {
return (React.createElement("div", { style: { width: '400px' } },
React.createElement(SpinButton, { defaultValue: "0", label: 'Basic SpinButton:', min: 0, max: 100, step: 1, iconProps: { iconName: 'IncreaseIndentLegacy' },
// tslint:disable:jsx-no-lambda
onFocus: function () { return console.log('onFocus called'); }, onBlur: function () { return console.log('onBlur called'); } }),
React.createElement(SpinButton, { defaultValue: "0", label: 'Decimal SpinButton:', min: 0, max: 10, step: 0.1, onFocus: function () { return console.log('onFocus called'); }, onBlur: function () { return console.log('onBlur called'); } })));
};
return SpinButtonBasicExample;
}(React.Component));
export { SpinButtonBasicExample };
//# sourceMappingURL=SpinButton.Basic.Example.js.map