electron#OpenDialogReturnValue TypeScript Examples
The following examples show how to use
electron#OpenDialogReturnValue.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ViewerHandler.ts From viewer with MIT License | 6 votes |
/**
* Open file dialog
* @param options
* @returns
*/
public async openFile(
options: OpenDialogOptions
): Promise<OpenDialogReturnValue> {
return dialog.showOpenDialog(options);
}
Example #2
Source File: electron.service.ts From WowUp with GNU General Public License v3.0 | 5 votes |
public async showOpenDialog(options: OpenDialogOptions): Promise<OpenDialogReturnValue> {
return await this.invoke(IPC_SHOW_OPEN_DIALOG, options);
}