How to change modal dialog style in google apps script

I want to change the position and background color of a modal dialog in google apps script for my addon I searched a lot but found answers only using UiApp which is now deprecated and no longer works. I have not found answers for this using HtmlService. Only function available after createHtmlOutputFromFile ('Index'): setWidth and setHeight which work fine, but I need to change the position of the modals as well. Is there a way to do this at the moment?

+3


source to share


1 answer


Unfortunately there is no way to change the position of the modal. The sidebar dialog is also static. However, you can use CSS properties to control the appearance inside dialog boxes.



Here is a link to best practices for add-on development: https://developers.google.com/apps-script/guides/html/best-practices

+4


source







All Articles