UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

56 lines 2.44 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { DefaultButton } from 'office-ui-fabric-react/lib/Button'; var ContextualMenuIconSecondaryTextExample = /** @class */ (function (_super) { tslib_1.__extends(ContextualMenuIconSecondaryTextExample, _super); function ContextualMenuIconSecondaryTextExample(props) { var _this = _super.call(this, props) || this; _this.state = { showCallout: false }; return _this; } ContextualMenuIconSecondaryTextExample.prototype.render = function () { return (React.createElement("div", null, React.createElement(DefaultButton, { id: "ContextualMenuButton2", text: "Click for ContextualMenu", menuProps: { shouldFocusOnMount: true, items: [ { key: 'Later Today', iconProps: { iconName: 'Clock' }, text: 'Later Today', secondaryText: '7:00 PM' }, { key: 'Tomorrow', iconProps: { iconName: 'Coffeescript' }, text: 'Tomorrow', secondaryText: 'Thu. 8:00 AM' }, { key: 'This Weekend', iconProps: { iconName: 'Vacation' }, text: 'This Weekend', secondaryText: 'Sat. 10:00 AM' }, { key: 'Next Week', iconProps: { iconName: 'Suitcase' }, text: 'Next Week', secondaryText: 'Mon. 8:00 AM' } ] } }))); }; return ContextualMenuIconSecondaryTextExample; }(React.Component)); export { ContextualMenuIconSecondaryTextExample }; //# sourceMappingURL=ContextualMenu.Icon.SecondaryText.Example.js.map