office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
31 lines (29 loc) • 1.6 kB
JavaScript
;
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var React = require("react");
var index_1 = require("../../../../index");
var PivotIconCountExample = (function (_super) {
__extends(PivotIconCountExample, _super);
function PivotIconCountExample() {
return _super !== null && _super.apply(this, arguments) || this;
}
PivotIconCountExample.prototype.render = function () {
return (React.createElement("div", null,
React.createElement(index_1.Pivot, null,
React.createElement(index_1.PivotItem, { linkText: 'My Files', itemCount: 42, itemIcon: 'Emoji2' },
React.createElement(index_1.Label, null, "Pivot #1")),
React.createElement(index_1.PivotItem, { itemCount: 23, itemIcon: 'Recent' },
React.createElement(index_1.Label, null, "Pivot #2")),
React.createElement(index_1.PivotItem, { itemIcon: 'Globe' },
React.createElement(index_1.Label, null, "Pivot #3")),
React.createElement(index_1.PivotItem, { linkText: 'Shared with me', itemIcon: 'Ringer', itemCount: 1 },
React.createElement(index_1.Label, null, "Pivot #4")))));
};
return PivotIconCountExample;
}(React.Component));
exports.PivotIconCountExample = PivotIconCountExample;
//# sourceMappingURL=Pivot.IconCount.Example.js.map