import * as tslib_1 from "tslib";
import * as React from 'react';
import { ContextualMenuItemType } from 'office-ui-fabric-react/lib/ContextualMenu';
import { DefaultButton } from 'office-ui-fabric-react/lib/Button';
import './ContextualMenuExample.scss';
var ContextualMenuSectionExample = /** @class */ (function (_super) {
    tslib_1.__extends(ContextualMenuSectionExample, _super);
    function ContextualMenuSectionExample() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    ContextualMenuSectionExample.prototype.render = function () {
        return (React.createElement("div", null,
            React.createElement(DefaultButton, { text: "Click for ContextualMenu", menuProps: {
                    items: [
                        {
                            key: 'section1',
                            itemType: ContextualMenuItemType.Section,
                            sectionProps: {
                                topDivider: true,
                                bottomDivider: true,
                                title: 'Actions',
                                items: [
                                    {
                                        key: 'newItem',
                                        text: 'New'
                                    },
                                    {
                                        key: 'deleteItem',
                                        text: 'Delete'
                                    }
                                ]
                            }
                        },
                        {
                            key: 'section2',
                            itemType: ContextualMenuItemType.Section,
                            sectionProps: {
                                title: 'Social',
                                items: [
                                    {
                                        key: 'share',
                                        text: 'Share'
                                    },
                                    {
                                        key: 'print',
                                        text: 'Print'
                                    },
                                    {
                                        key: 'music',
                                        text: 'Music'
                                    }
                                ]
                            }
                        },
                        {
                            key: 'section3',
                            itemType: ContextualMenuItemType.Section,
                            sectionProps: {
                                title: 'Navigation',
                                items: [
                                    {
                                        key: 'Bing',
                                        text: 'Go to Bing',
                                        href: 'http://www.bing.com',
                                        target: '_blank'
                                    }
                                ]
                            }
                        }
                    ]
                } })));
    };
    return ContextualMenuSectionExample;
}(React.Component));
export { ContextualMenuSectionExample };
//# sourceMappingURL=ContextualMenu.Section.Example.js.map