UNPKG

@uifabric/experiments

Version:

Experimental React components for building experiences for Office 365.

20 lines 925 B
import * as tslib_1 from "tslib"; import * as React from 'react'; import { DefaultButton } from 'office-ui-fabric-react/lib/Button'; var PageNumber = /** @class */ (function (_super) { tslib_1.__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