user2345998
user2345998

Reputation: 649

Add item with icon to a menu in Google Apps Script

Is it possible to add a menu item with an icon (like the icons of undo/redo button) to a custom menu item?

The documentation of the Class Menu doesn't mention it, so I guess it's not possible, but maybe there's a way to achieve this?

Thanks!

Upvotes: 9

Views: 6581

Answers (1)

Umut Bebek
Umut Bebek

Reputation: 374

You can not use custom icons i suppose but you can use html character codes like this:

DocumentApp.getUi().createMenu('☁ Cloud')
  .addItem("🖋 Pen", 'showHtmlBlaBla')
  .addToUi();

You can look here for some codes

Upvotes: 10

Related Questions