问题
I am trying to collect a Date input from the user in a Gmail Add-on, but I don't know how to implement a Datepicker Widget in CardService
(the only way to make a Gmail Add-on). If I look at Google's Gmail add-ons, they have such a widget:
Any suggestions please on how this can be done ?
回答1:
In short: Can't
Right now, the only way to create addons is to use CardService. However, CardService lacks certain useful widgets, such as DatePicker, MaskedTextInput, etc. However , default google add-ons seem to have much more powerful widgets, and of course the datepicker. I would recommend you to wait or do a workaround by making use of dropdown to select date, month, year, until they make it available for public.
来源:https://stackoverflow.com/questions/51978305/create-a-datepicker-widget-in-gmail-add-on