office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
112 lines • 2.8 kB
JavaScript
export var items = [
(_a = {
key: 'newItem',
name: 'New',
cacheKey: 'myCacheKey',
iconProps: {
iconName: 'Add'
},
ariaLabel: 'New. Use left and right arrow keys to navigate'
},
_a['data-automation-id'] = 'newItemMenu',
_a.subMenuProps = {
items: [
(_b = {
key: 'emailMessage',
name: 'Email message',
iconProps: {
iconName: 'Mail'
}
},
_b['data-automation-id'] = 'newEmailButton',
_b),
{
key: 'calendarEvent',
name: 'Calendar event',
iconProps: {
iconName: 'Calendar'
}
}
]
},
_a),
(_c = {
key: 'upload',
name: 'Upload',
iconProps: {
iconName: 'Upload'
},
href: 'https://dev.office.com/fabric'
},
_c['data-automation-id'] = 'uploadButton',
_c),
{
key: 'share',
name: 'Share',
iconProps: {
iconName: 'Share'
},
onClick: function () { return console.log('Share'); }
},
{
key: 'download',
name: 'Download',
iconProps: {
iconName: 'Download'
},
onClick: function () { return console.log('Download'); }
}
];
export var overflowItems = [
{
key: 'move',
name: 'Move to...',
iconProps: {
iconName: 'MoveToFolder'
}
},
{
key: 'copy',
name: 'Copy to...',
iconProps: {
iconName: 'Copy'
}
},
{
key: 'rename',
name: 'Rename...',
iconProps: {
iconName: 'Edit'
}
}
];
export var farItems = [
{
key: 'sort',
name: 'Sort',
iconProps: {
iconName: 'SortLines'
},
onClick: function () { return console.log('Sort'); }
},
{
key: 'tile',
name: 'Grid view',
iconProps: {
iconName: 'Tiles'
},
iconOnly: true,
onClick: function () { return console.log('Tiles'); }
},
{
key: 'info',
name: 'Info',
iconProps: {
iconName: 'Info'
},
iconOnly: true,
onClick: function () { return console.log('Info'); }
}
];
var _a, _b, _c;
//# sourceMappingURL=data.js.map