Using electron-progressbar in renderer process
up vote
0
down vote
favorite
https://www.npmjs.com/package/electron-progressbar#more-examples
Hi, I need to use progressbar in electron.
But with the progressbar package, It turned out that examples can be used in main process not in renderer process.
Is it possible to use that in renderer process so that the user clicks the calculation button and waits for a while?
javascript electron
add a comment |
up vote
0
down vote
favorite
https://www.npmjs.com/package/electron-progressbar#more-examples
Hi, I need to use progressbar in electron.
But with the progressbar package, It turned out that examples can be used in main process not in renderer process.
Is it possible to use that in renderer process so that the user clicks the calculation button and waits for a while?
javascript electron
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
https://www.npmjs.com/package/electron-progressbar#more-examples
Hi, I need to use progressbar in electron.
But with the progressbar package, It turned out that examples can be used in main process not in renderer process.
Is it possible to use that in renderer process so that the user clicks the calculation button and waits for a while?
javascript electron
https://www.npmjs.com/package/electron-progressbar#more-examples
Hi, I need to use progressbar in electron.
But with the progressbar package, It turned out that examples can be used in main process not in renderer process.
Is it possible to use that in renderer process so that the user clicks the calculation button and waits for a while?
javascript electron
javascript electron
edited Nov 8 at 9:17
wanttobeprofessional
87731223
87731223
asked Nov 8 at 4:59
Antonio SEO
858
858
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
Yes it is.
1. In the main process
global.ProgressBar = require('electron-progressbar');
2. In the renderer process
const { getGlobal, app } = require('electron').remote;
const ProgressBar = getGlobal('ProgressBar');
app.on('ready', function() {
var progressBar = new ProgressBar({
text: 'Preparing data...',
detail: 'Wait...'
});
For me this error happens do you know why?? Uncaught TypeError: ProgressBar is not a constructor
– Antonio SEO
Nov 8 at 12:41
@AntonioSEO check the edited answer. There was a correction. I believe now it should work fine.
– Nishkal Kashyap
Nov 8 at 13:22
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Yes it is.
1. In the main process
global.ProgressBar = require('electron-progressbar');
2. In the renderer process
const { getGlobal, app } = require('electron').remote;
const ProgressBar = getGlobal('ProgressBar');
app.on('ready', function() {
var progressBar = new ProgressBar({
text: 'Preparing data...',
detail: 'Wait...'
});
For me this error happens do you know why?? Uncaught TypeError: ProgressBar is not a constructor
– Antonio SEO
Nov 8 at 12:41
@AntonioSEO check the edited answer. There was a correction. I believe now it should work fine.
– Nishkal Kashyap
Nov 8 at 13:22
add a comment |
up vote
1
down vote
accepted
Yes it is.
1. In the main process
global.ProgressBar = require('electron-progressbar');
2. In the renderer process
const { getGlobal, app } = require('electron').remote;
const ProgressBar = getGlobal('ProgressBar');
app.on('ready', function() {
var progressBar = new ProgressBar({
text: 'Preparing data...',
detail: 'Wait...'
});
For me this error happens do you know why?? Uncaught TypeError: ProgressBar is not a constructor
– Antonio SEO
Nov 8 at 12:41
@AntonioSEO check the edited answer. There was a correction. I believe now it should work fine.
– Nishkal Kashyap
Nov 8 at 13:22
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Yes it is.
1. In the main process
global.ProgressBar = require('electron-progressbar');
2. In the renderer process
const { getGlobal, app } = require('electron').remote;
const ProgressBar = getGlobal('ProgressBar');
app.on('ready', function() {
var progressBar = new ProgressBar({
text: 'Preparing data...',
detail: 'Wait...'
});
Yes it is.
1. In the main process
global.ProgressBar = require('electron-progressbar');
2. In the renderer process
const { getGlobal, app } = require('electron').remote;
const ProgressBar = getGlobal('ProgressBar');
app.on('ready', function() {
var progressBar = new ProgressBar({
text: 'Preparing data...',
detail: 'Wait...'
});
edited Nov 8 at 13:21
answered Nov 8 at 8:38
Nishkal Kashyap
20219
20219
For me this error happens do you know why?? Uncaught TypeError: ProgressBar is not a constructor
– Antonio SEO
Nov 8 at 12:41
@AntonioSEO check the edited answer. There was a correction. I believe now it should work fine.
– Nishkal Kashyap
Nov 8 at 13:22
add a comment |
For me this error happens do you know why?? Uncaught TypeError: ProgressBar is not a constructor
– Antonio SEO
Nov 8 at 12:41
@AntonioSEO check the edited answer. There was a correction. I believe now it should work fine.
– Nishkal Kashyap
Nov 8 at 13:22
For me this error happens do you know why?? Uncaught TypeError: ProgressBar is not a constructor
– Antonio SEO
Nov 8 at 12:41
For me this error happens do you know why?? Uncaught TypeError: ProgressBar is not a constructor
– Antonio SEO
Nov 8 at 12:41
@AntonioSEO check the edited answer. There was a correction. I believe now it should work fine.
– Nishkal Kashyap
Nov 8 at 13:22
@AntonioSEO check the edited answer. There was a correction. I believe now it should work fine.
– Nishkal Kashyap
Nov 8 at 13:22
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53201795%2fusing-electron-progressbar-in-renderer-process%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown