所以我一直在尝试改变文档显示在Alfresco共享工作流程表单中项目字段中的突出显示颜色。基本上,给定一个起始形式,看起来像这样...
so I have been trying to change the highlight color in which documents show up in the "items" field within an Alfresco Share workflow form. Basically, given a starting form that looks like this...
您会注意到,添加到项目字段的每个其他文档都会自动突出显示为浅蓝色。我想知道是否可以改变这种颜色,此外,如果可以设置它,所以只有顶部的项目(或单个项目)在该文档列表中突出显示?
You will notice that every other document that gets added to the items field is automatically highlighted light blue. I was wondering if it was possible to change that color, and furthermore if it was possible to set it so only the top item (or a single items) gets highlighted in that list of documents?
我认为这将是一样简单,找到和更改一个CSS文件在某个地方,但尽管改变了Alfresco中的一些不同的CSS文件,我没有多少运气改变那种颜色。
I thought this would be as simple as finding and changing a CSS file somewhere, but despite changing a number of different CSS files within Alfresco, I have had little luck changing that color. Just wondering if anyone had any experience with this and would be willing to help me out?
推荐答案已编辑:您正在寻找的类是:
EDITED: The class you're looking for is:
tr.yui-dt-highlighted
tr.yui-dt-highlighted
这些类是由页面中注入的JavaScript自动生成的。所以,我搜索并发现这个小信息: path share / res / js / yui-common.js 你应该使用一个工具,如 JavaScript Formatting 来了解一些代码。有一个CLASS_HIGHLIGHTED启动一个函数,你应该尝试覆盖这个:
The problem here is that these classes are generated automatically by JavaScript injected in the page. So, I've searched and found this little info: path share/res/js/yui-common.js you should use a tool like JavaScript Formatting to understand some code in there. There is a CLASS_HIGHLIGHTED that starts a function, and you should try to override this:
highlightRow: function (k) { var i = this.getTrEl(k); if (i) { var j = this.getRecord(i); c.addClass(i, d.CLASS_HIGHLIGHTED); this.fireEvent("rowHighlightEvent", { record: j, el: i }); return; } }, unhighlightRow: function (k) { var i = this.getTrEl(k); if (i) { var j = this.getRecord(i); c.removeClass(i, d.CLASS_HIGHLIGHTED); this.fireEvent("rowUnhighlightEvent", { record: j, el: i }); return; } },有highlightRow和highlightColumn。它总是很难覆盖YAHOO yui函数。
There are highlightRow and highlightColumn to look into. It's always very difficult to override YAHOO yui functions..
更多推荐
如何更改突出的项目颜色在Alfresco共享表单
发布评论