UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

34 lines 1.41 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { Nav } from 'office-ui-fabric-react/lib/Nav'; var NavCustomGroupHeadersExample = /** @class */ (function (_super) { tslib_1.__extends(NavCustomGroupHeadersExample, _super); function NavCustomGroupHeadersExample() { return _super !== null && _super.apply(this, arguments) || this; } NavCustomGroupHeadersExample.prototype.render = function () { return (React.createElement(Nav, { onRenderGroupHeader: this._onRenderGroupHeader, groups: [ { name: 'Pages', links: [ { name: 'Activity', url: 'http://msn.com', key: 'key1' }, { name: 'News', url: 'http://msn.com', key: 'key2' } ] } ] })); }; NavCustomGroupHeadersExample.prototype._onRenderGroupHeader = function (group) { return React.createElement("h3", null, group.name); }; return NavCustomGroupHeadersExample; }(React.Component)); export { NavCustomGroupHeadersExample }; //# sourceMappingURL=Nav.CustomGroupHeaders.Example.js.map