office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
26 lines • 989 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var office_ui_fabric_react_1 = require("office-ui-fabric-react");
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