UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

51 lines 2.43 kB
define(["require", "exports", "tslib", "react", "office-ui-fabric-react/lib/Button", "./ContextualMenuExample.scss"], function (require, exports, tslib_1, React, Button_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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(Button_1.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)); exports.ContextualMenuWithScrollBarExample = ContextualMenuWithScrollBarExample; }); //# sourceMappingURL=ContextualMenu.ScrollBar.Example.js.map