Hello,
Going to release the product in a week or two!
Mail button missing on mobile view
Re: Mail button missing on mobile view
Hi,it works,I have 2 suggestions:
1.make the options window responsive as in image some controls are outside the device screen
2.add a loading icon or a text while report is sent,there are 3-4 seconds delay where user doesn't know what the app is doing.there is the code I use for sending mail: viewtopic.php?f=27&t=57332&p=153417#p153339
thanks
1.make the options window responsive as in image some controls are outside the device screen
2.add a loading icon or a text while report is sent,there are 3-4 seconds delay where user doesn't know what the app is doing.there is the code I use for sending mail: viewtopic.php?f=27&t=57332&p=153417#p153339
thanks
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: Mail button missing on mobile view
Hello,
We will try to decrease size of that form in the next builds.
Thank you.
We will try to decrease size of that form in the next builds.
Thank you.
Re: Mail button missing on mobile view
thanks.what about second suggestion?
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: Mail button missing on mobile view
Hello,
You can use the following code:
viewer.jsObject.controls.processImage.show();
Thank you.
You can use the following code:
viewer.jsObject.controls.processImage.show();
Thank you.
Re: Mail button missing on mobile view
what is the best event to call this?
I've tried this:
const jsControls = this.viewer.jsObject.controls;
if (this.options.toolbar.showSendEmailButton) {
this.viewer.onEmailReport = function (args) {
const xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
jsControls.processImage.show();
if (this.readyState === 4) {
jsControls.processImage.hide();
if (this.responseText === 'OK') {
alert('Mail sent!');
} else {
alert(this.responseText);
}
}
};
thanks
I've tried this:
const jsControls = this.viewer.jsObject.controls;
if (this.options.toolbar.showSendEmailButton) {
this.viewer.onEmailReport = function (args) {
const xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
jsControls.processImage.show();
if (this.readyState === 4) {
jsControls.processImage.hide();
if (this.responseText === 'OK') {
alert('Mail sent!');
} else {
alert(this.responseText);
}
}
};
thanks
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: Mail button missing on mobile view
Hello,
You should hide progress in any case - if result success or no.
Thank you.
You should hide progress in any case - if result success or no.
Thank you.