UNPKG

@uifabric/experiments

Version:

Experimental React components for building experiences for Microsoft 365.

20 lines 901 B
import { __extends } from "tslib"; import * as React from 'react'; import { DefaultButton } from 'office-ui-fabric-react/lib/Button'; var PageNumber = /** @class */ (function (_super) { __extends(PageNumber, _super); function PageNumber(props) { var _this = _super.call(this, props) || this; _this._onClick = function () { _this.props.onClick(_this.props.page - 1); }; return _this; } PageNumber.prototype.render = function () { var _a = this.props, ariaLabel = _a.ariaLabel, page = _a.page, selected = _a.selected, className = _a.className; return (React.createElement(DefaultButton, { key: page, onClick: this._onClick, "aria-selected": selected, "aria-label": ariaLabel, styles: { root: className } }, page)); }; return PageNumber; }(React.Component)); export { PageNumber }; //# sourceMappingURL=PageNumber.js.map