禁用 google 个工作表菜单默认按钮

Disable google sheets menu default buttons

是否可以使用应用程序脚本禁用 google 工作表上的菜单按钮。我注意到当工作表加载时,按钮会被短暂禁用,这表明可能有某种方法可以做到这一点。

感谢您提前提出任何建议。

基于此 blog,您可以使用 &rm=minimal 隐藏电子表格中的控件。

In summary:

  • &ui=2 - (required for rm=demo) renders the spreadsheet in the 'new' version interface (note &ui=1 renders the 'old' version interface).
  • &chrome=false - renders the spreadsheet in full screen mode, i.e. without menu, controls (button bar) or formula bar
  • &rm=demo - renders the spreadsheet without the sheet menu, i.e. only one sheet (by default the first of a spreadsheet) is rendered
  • #gid=n - specifies which sheet to render; to set the default sheet to show or in combination with &rm=demo to render one single, specific, sheet.

检查这些相关线程:

  • Is it possible to hide or remove "File" "Edit" etc menus in a google spreadsheet?

希望对您有所帮助!