可以在google电子表格中添加“自定义功能帮助”吗? 即如果我在电子表格单元格中键入= sum,我会得到浮动帮助文本, 有没有办法用自定义函数来做到这一点?
google apps脚本中的文档是使用JSDoc http://en.wikipedia.org/wiki/JSDoc创建的 style(JavaDoc like)评论。 如此处所述 https://developers.google.com/apps-script/guide_libraries?hl=en#guidelines
看起来这些只能在脚本编辑器中使用。它有一种添加文档的方式,因此它出现在电子表格中。
答案 0 :(得分:7)
此功能于2014年5月添加,之前的Issue 2475已关闭。
examples given in Google's Documentation没问题,但你可以使用jsdoc信息做的比他们显示的更多。
例如:
/**
* Return the time that the referenced cell or range was last changed.
* Initial use shows current time.
*
* @param {Sheet3!B32} reference Cell or range to monitor.
* @returns The time the reference was last changed.
* @customfunction
*/
function lastModified( reference ) {
// Surprise - we don't actually care what has changed!
return( new Date() );
}
我在my blog中提供了更多细节和示例。
答案 1 :(得分:1)
看到没有关于此的文档,我认为这个功能是不可能的。考虑looking for an existing request for this on the Issue Tracker,如果没有,请提出功能请求!我确定你并不是唯一一个想看到这个的人。
答案 2 :(得分:1)