Try the fastest and simplest way to install ONLYOFFICE

Document Server showMessage() method

Integration questions/issues

Document Server showMessage() method

Postby AndrewG » Sun May 14, 2017 1:48 am

Hi everyone,

according to the documentation https://api.onlyoffice.com/editors/methods#showMessage docEditor.showMessage(title, message, type) method should "Display dialog with the message."
Where "type" - defines the dialog type. Can be: info, warning, error. But this parameter is absolutely disregarded, and the dialog shown as tooltip but not as expected dialog what is the main issue.

(1) So it shows message in the format:
showMessage_img1.jpg
showMessage() message as is
showMessage_img1.jpg (8.18 KiB) Viewed 340 times


(2) But instead the message in the following format is expected to be shown:
showMessage_img2.jpg
showMessage() message expected
showMessage_img2.jpg (14.91 KiB) Viewed 340 times


The question: is it possible to generate dialogs like the expected one (2)?

Thanks!
--
Best regards,
Andrew
User avatar
AndrewG
 
Posts: 18
Joined: Sat May 06, 2017 3:09 am

Re: Document Server showMessage() method

Postby Maxim » Mon May 15, 2017 12:25 pm

Hello AndrewG!
Thank you for the information you posted.
The documentation will be changed to correct content.
Parameter "type" will be shown as tooltip.
Maxim
 
Posts: 1240
Joined: Tue Oct 11, 2016 2:34 pm

Re: Document Server showMessage() method

Postby AndrewG » Mon May 15, 2017 2:35 pm

Thanks for the answer, but is it possible to show dialog NOT like a tooltip?
--
Best regards,
Andrew
User avatar
AndrewG
 
Posts: 18
Joined: Sat May 06, 2017 3:09 am

Re: Document Server showMessage() method

Postby Maxim » Tue May 16, 2017 6:26 am

Hello AndrewG!
Unfortunately there is no way for now.
Maxim
 
Posts: 1240
Joined: Tue Oct 11, 2016 2:34 pm


Return to API

Who is online

Users browsing this forum: No registered users and 1 guest