file picker electron
const {dialog} = require('electron').remote;
document.querySelector('#selectBtn').addEventListener('click', function (event) {
dialog.showOpenDialog({
properties: ['openFile', 'multiSelections']
}, function (files) {
if (files !== undefined) {
// handle files
}
});
});
Also in JavaScript:
- js writing to json file
- cannot get / angular
- js remove element from array
- jquery slidetoggle
- how to use static file node js
- js replace all
- js indexof string
- remove special characters from string javascript
- js array two dimensional
- node map has value
- javascript select all table rows
- copy to clipboard javascript
- slickcdn
- express js redirect to url
- using dot notation in jsx
- javascript regex .test
- how to make a css clock
- How to make remove buttoon on table using js DOM
- angular current year
- player.filter
- js get base url
- vue js on checkbox show div
- javascript version of sleep
- jquery create input hidden