office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
58 lines • 2.5 kB
JavaScript
import * as tslib_1 from "tslib";
import * as React from 'react';
import { Nav } from '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, { 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'
}
]
}
]
}
], expandButtonAriaLabel: 'Expand or collapse' }));
};
return NavNestedExample;
}(React.Component));
export { NavNestedExample };
//# sourceMappingURL=Nav.Nested.Example.js.map