Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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
        }
    });
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: svg to string javascript 
Javascript :: discord.js button 
Javascript :: link on click jquery 
Javascript :: javascript to remove duplicates from an array 
Javascript :: check if document is ready js 
Javascript :: momentjs range 
Javascript :: moment format date 
Javascript :: unshift 
Javascript :: jquery wp disable 
Javascript :: jquery select all checkboxes 
Javascript :: submit a form on enter angular 
Javascript :: heroku scripts 
Javascript :: remove duplicate json object from array javascript 
Javascript :: Write the JavaScript code to set the width of element to 50%; 
Javascript :: prevent paste in input 
Javascript :: js convert to fraction 
Javascript :: add active class to li onclick react 
Javascript :: Nullish Coalescing Vs Logical OR opreators 
Javascript :: javascript math.random 
Javascript :: contenteditable paste plain text 
Javascript :: laravel data return in json 
Javascript :: javascript js isNumber 
Javascript :: how to add numbers in an array in javascript 
Javascript :: reduce() break 
Javascript :: check if url is http or https javascript 
Javascript :: open cypress window 
Javascript :: regexp object javascript 
Javascript :: trim string after - in jquery 
Javascript :: deleting key of json object 
Javascript :: useSearchParams 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =