I have a FluenUI contextual menu component, initialized like this:
const items = [
{
key: 'linkWithTarget',
text: 'Download File',
href: 'https://some.site.com/somefolder/somefile.txt',
}
];
<ContextualMenu items={menuItems} ... />
How do I specify download
attribute for this menu item to force download? I mean, I would like to get generated HTML like this:
<a href="http://somesite.net/somefolder/somefile.txt" download>Download file</a>
I have looked at the template options available for this component, but have not found anything reasonable.