使用 Google Apps 脚本设计自定义电子表格菜单项 [英] Styling a custom spreadsheet menu item using Google Apps Script

查看:23
本文介绍了使用 Google Apps 脚本设计自定义电子表格菜单项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Google 表格上有一个自定义菜单:

I have a custom menu on a Google Sheets:

function onOpen() {
  var ss = SpreadsheetApp.getActiveSpreadsheet();
  var csvMenuEntries = [{name: "Save as CSV file", functionName: "saveAsCSV"}];
  ss.addMenu("Save New Emails", csvMenuEntries);    
}

我想为我创建的菜单设置样式.

I would like to style the menus I create.

这是可能的吗?如何去做?

Is this possible and how would one go about it?

我真正想做的就是为按钮设置自定义颜色或背景以使其脱颖而出.

All I really want to do is have a custom colour or background for the button to make it stand out.

推荐答案

我认为当前的 API 不支持这一点.

I don't think this is supported by the current API.

这篇关于使用 Google Apps 脚本设计自定义电子表格菜单项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆