office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
42 lines • 2.08 kB
JavaScript
define(["require", "exports", "tslib", "react", "office-ui-fabric-react/lib/Nav"], function (require, exports, tslib_1, React, Nav_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
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