1

I would like to use a unicode symbol for Power, &#x23FB, in my drop-down menu. Here is a link saying it can be done; however, I can't figure how to code it.

how to make icons in google custom menu

var menu = DocumentApp.getUi().createAddonMenu();
    menu.addItem('&#9824', 'Run App');
    menu.addToUi(); 

Thanks.

M Buck
  • 49
  • 10

1 Answers1

2

Don't use the code. Cut and paste the character. Like '☢' The Apps Script IDE and all the apps support unicode.

var menu = DocumentApp.getUi().createAddonMenu();
    menu.addItem('☢', 'Run App');
    menu.addToUi();
Spencer Easton
  • 5,642
  • 1
  • 16
  • 25