Page 2 of 2
Re: Mail button missing on mobile view
Posted: Sat Feb 01, 2020 1:54 pm
by Andrew
Hello,
Going to release the product in a week or two!
Re: Mail button missing on mobile view
Posted: Tue Feb 11, 2020 12:03 pm
by mrapi
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
Re: Mail button missing on mobile view
Posted: Fri Feb 14, 2020 9:26 am
by Lech Kulikowski
Hello,
We will try to decrease size of that form in the next builds.
Thank you.
Re: Mail button missing on mobile view
Posted: Fri Feb 14, 2020 10:02 am
by mrapi
thanks.what about second suggestion?
Re: Mail button missing on mobile view
Posted: Fri Feb 14, 2020 12:09 pm
by Lech Kulikowski
Hello,
You can use the following code:
viewer.jsObject.controls.processImage.show();
Thank you.
Re: Mail button missing on mobile view
Posted: Sat Feb 15, 2020 12:07 pm
by mrapi
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
Re: Mail button missing on mobile view
Posted: Thu Feb 20, 2020 9:24 am
by Lech Kulikowski
Hello,
You should hide progress in any case - if result success or no.
Thank you.