在Alfresco Share中,搜索页面是通过Aikau实现的。我对一个更笼统的问题感兴趣,是否可以调试Aikau小部件?
我已经找到了有关此问题的一些链接,但它们更多地讨论了日志记录,而不是实际的JavaScript调试:
假设我有以下Aikau小部件alfresco / search / AlfSearchResult及其内部的以下方法:
/**
* This function is called to create a
* [SearchResultPropertyLink]{@link module:alfresco/renderers/SearchResultPropertyLink} widget
* to render the displayName of the result. It can be overridden to replace the default widget
* with a reconfigured version.
*
* @instance
*/
createDisplayNameRenderer: function alfresco_search_AlfSearchResult__createDisplayNameRenderer() {
// jshint nonew:false
var config = {
id: this.id + "_DISPLAY_NAME",
currentItem: this.currentItem,
pubSubScope: this.pubSubScope,
propertyToRender: "displayName",
renderSize: "large",
newTabOnMiddleOrCtrlClick: this.newTabOnMiddleOrCtrlClick,
defaultNavigationTarget: this.navigationTarget
};
if (this.navigationTarget)
{ …Run Code Online (Sandbox Code Playgroud)