office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
26 lines • 1.12 kB
JavaScript
define(["require", "exports", "react", "office-ui-fabric-react"], function (require, exports, React, office_ui_fabric_react_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var menuProps = {
items: [
{
key: 'emailMessage',
text: 'Email message',
iconProps: { iconName: 'Mail' }
},
{
key: 'calendarEvent',
text: 'Calendar event',
iconProps: { iconName: 'Calendar' }
}
]
// By default, the menu will be focused when it opens. Uncomment the next line to prevent this.
// shouldFocusOnMount: false
};
var addIcon = { iconName: 'Add' };
exports.ButtonCommandExample = function (props) {
var disabled = props.disabled, checked = props.checked;
return React.createElement(office_ui_fabric_react_1.CommandButton, { iconProps: addIcon, text: "New item", menuProps: menuProps, disabled: disabled, checked: checked });
};
});
//# sourceMappingURL=Button.Command.Example.js.map