AboutSupportDeveloper GuideVersion 35.120.79.5

Generated when the Download Shelf 'Show All' button is clicked.

Remarks

By default, OpenFin does not handle the clicking of the Show All button on the download shelf. Instead, it fires this event, which leaves rendering a download manager to the user. For a simple implementation, the chrome://downloads page can be used (see the example below):

Example

const platform = await fin.Platform.getCurrentSync();
// Listen to the propagated event at the Platform level, so that we only need one listener for a click from any window
platform.on('window-show-all-downloads', () => {
// Render the `chrome://downloads` window when a user clicks on the download shelf `Show All` button
platform.createWindow({
name: 'show-download-window',
layout: {
content: [
{
type: 'stack',
content: [
{
type: 'component',
componentName: 'view',
componentState: {
name: 'show-download-view',
url: 'chrome://downloads'
}
}
]
}
]
}
});
})

Hierarchy

  • ShowAllDownloadsEvent

Properties

Properties

name: string
topic: "window"
type: "show-all-downloads"
uuid: string