You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that there is a empty method which is at preload/index.js as followL
// Custom APIs for renderer
const api = {
// Can I put some method on here to open a file dialog?
}
My question is : is there a demo for how to use it? for example, I have a button on App.vue which is for open a dialog to select the files on my OS. Can I write a method in this custom api . if it is , how to make it. Could you please give me an example ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I found that there is a empty method which is at preload/index.js as followL
My question is : is there a demo for how to use it? for example, I have a button on App.vue which is for open a dialog to select the files on my OS. Can I write a method in this custom api . if it is , how to make it. Could you please give me an example ?
Beta Was this translation helpful? Give feedback.
All reactions