UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

51 lines 2.11 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { DefaultButton } from 'office-ui-fabric-react/lib/Button'; import './ContextualMenuExample.scss'; var ContextualMenuWithScrollBarExample = /** @class */ (function (_super) { tslib_1.__extends(ContextualMenuWithScrollBarExample, _super); function ContextualMenuWithScrollBarExample(props) { var _this = _super.call(this, props) || this; _this.state = { showCallout: false }; return _this; } ContextualMenuWithScrollBarExample.prototype.render = function () { return (React.createElement("div", null, React.createElement(DefaultButton, { id: "ContextualMenuButton1", text: "Click for ContextualMenu", menuProps: { shouldFocusOnMount: true, directionalHint: 6 /* bottomRightEdge */, directionalHintFixed: true, items: [ { key: 'newItem', text: 'New' }, { key: 'item 2', text: 'Item with a very long label text' }, { key: 'edit', text: 'Edit' }, { key: 'properties', text: 'Properties' }, { key: 'disabled', text: 'Disabled item', disabled: true } ], calloutProps: { calloutMaxHeight: 65 } } }))); }; return ContextualMenuWithScrollBarExample; }(React.Component)); export { ContextualMenuWithScrollBarExample }; //# sourceMappingURL=ContextualMenu.ScrollBar.Example.js.map