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

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

问题描述

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

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

我想创建我创建的菜单。



这是可能的吗?怎么会这样?

我真正想要做的是自定义颜色或按钮的背景,使其脱颖而出。

解决方案

我不认为这是当前API支持的。


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.

解决方案

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

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

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