Styling a custom spreadsheet menu item using Googl

2019-02-21 02:33发布

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.

2条回答
SAY GOODBYE
2楼-- · 2019-02-21 03:22

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

查看更多
仙女界的扛把子
3楼-- · 2019-02-21 03:25

This isn't supported, but you can add some Unicode symbols to the menu entries' names so they stand out a little from the other options.

Most symbols from this site work: http://copypastecharacter.com/

This is what I've been using to highlight some help menu entries.

查看更多
登录 后发表回答