office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
26 lines (24 loc) • 1.28 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var example_app_base_1 = require("@uifabric/example-app-base");
var AppDefinition_1 = require("../../../demo/AppDefinition");
var Nav_1 = require("office-ui-fabric-react/lib/Nav");
var NavFabricDemoAppExample = (function (_super) {
tslib_1.__extends(NavFabricDemoAppExample, _super);
function NavFabricDemoAppExample() {
return _super !== null && _super.apply(this, arguments) || this;
}
NavFabricDemoAppExample.prototype.render = function () {
return (React.createElement(Nav_1.Nav, { groups: AppDefinition_1.AppDefinition.examplePages, onRenderLink: function (link) { return ([
React.createElement("span", { key: 1, className: 'Nav-linkText' }, link.name),
(link.status !== undefined ?
React.createElement("span", { key: 2, className: 'Nav-linkFlair ' + 'is-state' + link.status }, example_app_base_1.ExampleStatus[link.status]) :
null)
]); } }));
};
return NavFabricDemoAppExample;
}(React.Component));
exports.NavFabricDemoAppExample = NavFabricDemoAppExample;
//# sourceMappingURL=Nav.FabricDemoApp.Example.js.map
;