Home > Back-end >  Can I add a search box in Google Calendar add-on?
Can I add a search box in Google Calendar add-on?

Time:09-21

Can I add a search box in Google Calendar add-on ? This I'll use to search names from list of names present in Google spreadsheet.

CodePudding user response:

You can add a TextInput to your card, and attach a setOnChangeAction to it, so that a function is fired when the text input changes. You can also add a TextButton, to fire the function when it is clicked.

The triggered function would be passed an event object with information about the card widgets, including your input text, to be found in field commonEventObject.formInputs (see common event object). With this information, the function could look for the search results and display these.

  • Related