import { __extends } from "tslib";
import * as React from 'react';
import { DirectionalHint } from 'office-ui-fabric-react/lib/ContextualMenu';
import { DefaultButton } from 'office-ui-fabric-react/lib/Button';
import './ContextualMenuExample.scss';
var ContextualMenuWithScrollBarExample = /** @class */ (function (_super) {
    __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, { text: "Click for ContextualMenu", menuProps: {
                    shouldFocusOnMount: true,
                    directionalHint: DirectionalHint.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