4

What's the best way to implement/show a date picker UI in a card/widget in Gmail add-on? My use-case is showing the user's calendar events for a selected date. Any help is greatly appreciated in advance!

Rubén
  • 34,714
  • 9
  • 70
  • 166
Maximus S
  • 10,759
  • 19
  • 75
  • 154
  • 1
    I don't see a dedicated input widget type available for this.. Have you already considered using drop-down selection input widgets-- https://developers.google.com/apps-script/reference/card-service/selection-input, https://developers.google.com/apps-script/reference/card-service/selection-input-type –  Nov 28 '17 at 14:32
  • 1
    I've initiated a feature request for the same at https://issuetracker.google.com/issues/110375285 – hhsb Jun 20 '18 at 05:02

1 Answers1

2

Custom UI isn't supported by Gmail add-ons, so to answer your question you cannot implement a date picker yet. Hope Google adds the support soon.

Instead, check this add-on sample https://github.com/googlesamples/gmail-add-ons-samples/tree/master/meeting-assistant

Also, add-ons are written using Apps Script, which is built on top of JavaScript and is a server-side language.

https://developers.google.com/gmail/add-ons/

Abhishek S Jain
  • 144
  • 1
  • 10