[]
Sheets.FormulaPanel.Commands
• closeHints: Object
表示用于关闭提示的命令。
property execute - 执行操作。
example
//此示例展示如何将closeHints命令绑定到esc快捷键。
spread.commandManager().setShortcutKey("closeHints", 27);
| Name | Type |
|---|---|
execute |
(context: FormulaEditor) => any |
• commitContentToActiveCell: Object
表示用于将内容提交到活动单元格的命令。
property execute - 执行操作。
example
//此示例展示如何将commitContentToActiveCell命令绑定到ctrl-s快捷键。
spread.commandManager().setShortcutKey("commitContentToActiveCell", 83, true);
| Name | Type |
|---|---|
execute |
(context: FormulaEditor) => any |
• exitEdit: Object
表示用于退出编辑的命令。
property execute - 执行操作。
example
//此示例展示如何将exitEdit命令绑定到esc快捷键。
spread.commandManager().setShortcutKey("exitEdit", 27);
| Name | Type |
|---|---|
execute |
(context: FormulaEditor) => any |
• formatDocument: Object
表示用于格式化文档的命令。
property execute - 执行操作。
example
//此示例展示如何将formatDocument命令绑定到alt-shift-f快捷键。
spread.commandManager().setShortcutKey("formatDocument", 70, false, true, true);
| Name | Type |
|---|---|
execute |
(context: FormulaEditor) => any |
• showHints: Object
表示用于显示提示的命令。
property execute - 执行操作。
example
//此示例展示如何将showHints命令绑定到ctrl-shift-空格快捷键。
spread.commandManager().setShortcutKey("showHints", 32, true, true);
| Name | Type |
|---|---|
execute |
(context: FormulaEditor) => any |
• toggleAbsoluteRelativeReferences: Object
表示用于切换绝对/相对引用的命令。
property execute - 执行操作。
example
//此示例展示如何将toggleAbsoluteRelativeReferences命令绑定到f4快捷键。
spread.commandManager().setShortcutKey("toggleAbsoluteRelativeReferences", 115);
| Name | Type |
|---|---|
execute |
(context: FormulaEditor) => any |