office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
37 lines • 1.75 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var Nav_1 = require("office-ui-fabric-react/lib/Nav");
var NavNestedExample = /** @class */ (function (_super) {
tslib_1.__extends(NavNestedExample, _super);
function NavNestedExample() {
return _super !== null && _super.apply(this, arguments) || this;
}
NavNestedExample.prototype.render = function () {
return (React.createElement(Nav_1.Nav, { groups: [{
links: [
{
name: 'Parent link', url: 'http://example.com', links: [
{ name: 'Child link', url: 'http://example.com' },
{
name: 'Child link', url: 'http://example.com', links: [
{ name: 'Child link', url: 'http://example.com' },
{ name: 'Child link', url: 'http://example.com' }
]
},
{ name: 'Child link', url: 'http://example.com' }
]
},
{
name: 'Parent link', url: 'http://example.com', links: [
{ name: 'Child link', url: 'http://example.com' },
]
}
]
}] }));
};
return NavNestedExample;
}(React.Component));
exports.NavNestedExample = NavNestedExample;
//# sourceMappingURL=Nav.Nested.Example.js.map