Skip to content
Advertisement

How to make text-align: center in google app-script (Calendar)?

I new one in app-script, and I want just paste and align text using CardService.newTextParagraph()

JavaScript

I want use something like this

JavaScript

But its function and enum available only in the Document app.

By default in addon text aligned to the left. I just want to align it in the center. Have anybody some advice or suggestion, how I can do it? Thanks

Advertisement

Answer

To align text can be used class Class Grid.

docs https://developers.google.com/apps-script/reference/card-service/grid

usage –

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement