File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "timeZone" : " America/New_York" ,
3- "dependencies" : {
4- },
3+ "dependencies" : {},
54 "exceptionLogging" : " STACKDRIVER" ,
6- "runtimeVersion" : " V8"
5+ "runtimeVersion" : " V8" ,
6+ "oauthScopes" : [
7+ " https://www.googleapis.com/auth/spreadsheets.currentonly" ,
8+ " https://www.googleapis.com/auth/script.external_request"
9+ ],
10+ "addOns" : {
11+ "common" : {
12+ "name" : " DataSetIQ for Google Sheets" ,
13+ "logoUrl" : " https://datasetiq.com/icon-128.png" ,
14+ "layoutProperties" : {
15+ "primaryColor" : " #2563eb" ,
16+ "secondaryColor" : " #1e40af"
17+ },
18+ "homepageTrigger" : {
19+ "runFunction" : " onHomepage"
20+ },
21+ "universalActions" : []
22+ },
23+ "sheets" : {
24+ "homepageTrigger" : {
25+ "runFunction" : " onHomepage"
26+ }
27+ }
28+ }
729}
Original file line number Diff line number Diff line change @@ -114,6 +114,17 @@ function showSidebar() {
114114 SpreadsheetApp . getUi ( ) . showSidebar ( html ) ;
115115}
116116
117+ /**
118+ * Required for Google Workspace Marketplace add-on.
119+ * Returns a card shown when the add-on is opened from the homepage.
120+ */
121+ function onHomepage ( ) {
122+ showSidebar ( ) ;
123+ return CardService . newCardBuilder ( )
124+ . setHeader ( CardService . newCardHeader ( ) . setTitle ( 'DataSetIQ for Google Sheets' ) )
125+ . build ( ) ;
126+ }
127+
117128/**
118129 * Custom function: returns spill array with headers, sorted newest to oldest.
119130 */
You can’t perform that action at this time.
0 commit comments