How can I position a jQuery dialog, using htmlService

78 Views Asked by At

jQuery position uses "Fixed" which is not supported in caja, so that nice simple position: {my: "top", at: "top", of: $("#here")} will not work with htmlService. So to move my widget I have to use css and change the position to absolute.

Is there any way I can get the same effect as position: {my: "top", at: "top", of: $("#here")} using htmlService?

or is there an alternative to the jQuery dialog that I could use? I am tying to open up a simple prompt when someone clicks a button without leaving the sidebar.

1

There are 1 best solutions below

1
On

I see that you want to have a dialog box when you click on a button. For this you can refer to these documentations below:

  1. https://developers.google.com/apps-script/guides/ui-service#CustomHTML

  2. https://developers.google.com/apps-script/guides/dialogs#alert_dialogs

Hope that helps!